Configure Fluent Bit to collect, filter, and forward container logs with Kubernetes metadata enrichment

domain: docs.fluentbit.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Deploy Fluent Bit as a DaemonSet using the official Helm chart (fluent/fluent-bit) which mounts /var/log/containers from the node
  2. In the Helm values, configure the INPUT section to use the tail plugin reading from /var/log/containers/*.log with a Parser set to docker or cri depending on your container runtime
  3. Enable the kubernetes FILTER plugin with Kube_URL pointing to the Kubernetes API server; set Merge_Log On to merge embedded JSON log payloads into the top-level record
  4. Add a GREP filter to exclude log records matching a noisy pattern (e.g., health-check paths) using the Exclude directive before the output
  5. Configure the OUTPUT plugin: use the http plugin to forward to an OTLP-compatible endpoint, or the datadog plugin with apikey YOUR_KEY for Datadog log ingestion
  6. Validate the pipeline by running kubectl logs daemonset/fluent-bit and checking for parser errors or dropped records in the Fluent Bit metrics endpoint (/api/v1/metrics)

Known gotchas

Related routes

Configure Fluent Bit to collect Kubernetes pod logs, parse multiline stack traces, and forward to an OTLP-compatible backend
docs.fluentbit.io · 5 steps · unrated
Collect Kubernetes container logs with filelog receiver and k8sattributes processor
opentelemetry.io · 6 steps · unrated
Build a Fluent Bit parsing and filtering pipeline
docs.fluentbit.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans