Get previous logs from the pods with pt-k8s-debug-collector

Description

Would be interesting if we could include getting the previous logs from the pods using the --previous flag

On Percona MongoDB Operator, pt-k8s-debug-collector only gets the current logs.

Environment

None

Activity

Aaditya Dubey 
January 1, 2025 at 2:25 PM

Hi

Thank you for the information. Sending the request to engineering for its implementation.

zelmar.michelini 
January 1, 2025 at 2:08 PM

Hi !

In case a pod restarts, and you want to check the logs of the previous run, what you need to do is to use the --previous flag:

kubectl logs mongodb-rs1-node1 --previous

Aaditya Dubey 
January 1, 2025 at 1:42 PM

Hi

Thank you for the report and feedback.
Please explain the requirements in detail with example if any.

Details

Assignee

Reporter

Priority

Components

Needs QA

Needs Doc

Created December 27, 2024 at 7:36 PM
Updated January 1, 2025 at 2:25 PM