Dump from debug collector should have log files seperated in different files rather than one cumulated file

Description

pt-k8s-debug collector dumps logs of all container in a single file using kubectl logs --all-containers flag(ref). It would be convenient to have all the container logs in a separate file including init-container logs.

Steps to check
1. Run pt-k8s-debug-collector
2. Extract the tar.gz dump file
3. Check any of the pod and observe that logs.txt is a cumulated file of all the containers
4. For example, run the pt-k8s-debug-collector on a k8s cluster where pxc cluster is running and check the folder <DUMP-FOLDER>/cluster-dump/pxc/<pod-name>. There will be a file logs.txt. Ideally this should have list of files which contains log of a single container only.

cc

Environment

None

Activity

Show:

Details

Assignee

Reporter

Priority

Affects versions

Fix versions

Needs QA

Yes

Smart Checklist

Created November 27, 2023 at 12:01 PM
Updated February 29, 2024 at 8:34 PM