Collecting Kubernetes pod logs is a commonly used feature of a collector. This collector is the equivelent of
kubectl logs and including the output in the support bundle.
This collector is fully documented in the reference docs.
To illustrate how to use this collector, we’ll create a collector that includes all logs from pods with a “app=api” label selector.
collect: v1: - kubernetes.logs: output_dir: /kubernetes/api-pod-logs namespace: default pod_log_options: timestamps: true sinceSeconds: 1000000 limitBytes: 1000000000 list_options: labelSelector: app=api timeout_seconds: 30