Kubernetes Logs Collector

The Kubernetes Logs Custom Collector

This content is associated with a legacy version of the Replicated product. For the current Replicated product documentation, see docs.replicated.com.

Kubernetes Logs

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.

    - kubernetes.logs:
      output_dir: /kubernetes/api-pod-logs
      namespace: default
        timestamps: true
        sinceSeconds: 1000000
        limitBytes: 1000000000
        labelSelector: app=api
      timeout_seconds: 30