Stream logs to Dynatrace with Fluentd on Kubernetes
Dynatrace Log Management and Analytics uses OneAgent DaemonSet, which includes a log module. This is the recommended way of streaming logs from nodes and pods to Dynatrace.
Alternatively, you can use the Dynatrace Fluentd plugin, which is an open-source module, to stream logs.
The architecture is illustrated below.
Capabilities
-
Supports streaming logs to different Dynatrace environments from the same Kubernetes cluster. For example, you can send application pod logs to a different environment than the Kubernetes node logs.
-
Supports streaming logs for application-only integrations.
-
Can be configured to stream logs directly to Dynatrace.
Limitations
Logs coming from Fluentd aren't linked with the Kubernetes workloads. Consequently, you can't search for logs by Kubernetes workload on the Log viewer page in Dynatrace. However, you can still see logs on the corresponding Kubernetes workloads pages.
Deploy integration
For instructions on how to deploy Fluentd integration, see the documentation on GitHub.