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.
To start shipping the logs that are produced by the specific service group or process, click on the
Set Up button.
This will display a panel where you can configure Kubernetes log shipping:
- Enable the "Automatically ship
- Select the destination Logs App. If the Logs App doesn't exist, you'll be able to create one from the same screen
- Click the
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.