Kubernetes Container Logs
Read container logs from Kubernetes nodes
Supported Platforms
Platform | Metrics | Logs | Traces |
---|---|---|---|
Kubernetes DaemonSet | ✓ | ||
OpenShift 4 DaemonSet | ✓ |
Configuration Table
Parameter | Type | Default | Description |
---|---|---|---|
cluster_name* | string | The cluster name that will be added as the k8s.cluster.name resource attribute. | |
log_source | enum | File | Where to read logs from. Generally, this is file . file source supports Docker json-file and Containerd cri-o log formats. Options include file and journald . |
file_path | strings | /var/log/containers/*.log | When log_source is file. File or directory paths to tail for logs. Defaults to all container logs. |
journald_path* | string | The directory containing Journald's log files. | When log_source is journald. The directory containing Journald's log files. |
exclude_file_path | strings | /var/log/containers/observiq--collector- | File or directory paths to exclude. Generally, the collector's own log should be excluded. |
start_at | enum | end | Start reading the logs from the 'beginning' or 'end'. |
Example Configuration
The Kubernetes Container logs source has one required parameter:
- Cluster Name: The name of the cluster, which will be inserted as the
k8s.cluster.name
resource attribute

Once running on an agent, metrics will look like this:
