Before You Begin
Before beginning this guide, you should have:- Created a running Kubernetes cluster.
- Deployed an OpenTelemetry Collector in DaemonSet mode using a Helm chart.
Collect Logs
Enable the Filelog Receiver to collect logs by adding thelogsCollection preset in the values file for your OpenTelemetry DaemonSet-mode Collector. Place it near the top of the values file under the config section:
View the values file for the Kubernetes OpenTelemetry DaemonSet-Mode Collector
View the values file for the Kubernetes OpenTelemetry DaemonSet-Mode Collector
Tune Logs Collection
By default, thelogsCollection preset in the OpenTelemetry Helm chart will configure the Collector to collect all the pod logs in a cluster.
In larger clusters, you may want to configure the preset to target specific pods or applications to avoid being overwhelmed.