Skip to content

Shipping Kubernetes Logs

Collecting and shipping Kubernetes logs is accomplished in a similar manner to log files and plain container logs. The Kubernetes containers are grouped by type of service or process that is running inside the container.

Kubernetes Logs Discovery

To start shipping the logs that are produced by the specific service group or process, click on the Set Up button.

Kubernetes Log Shipping

This will display a panel where you can configure Kubernetes log shipping:

Enable Container Logs

  1. Enable the "Automatically ship logs" toggle
  2. Select the destination Logs App. If the Logs App doesn't exist, you'll be able to create one from the same screen
  3. Click the Save Changes button

Filtering logs by pod labels

For every container that belongs to the service or process group, you can narrow down logs collection by pod labels. Both the label's keys and values are obtained for each pod that contains one or multiple containers identified by the service type or process name.

Filter By Pod Labels