Skip to main content
Picture a new tenant moving into our apartment complex. They unpack on a Monday, and that same morning their mail is already being collected. Nobody had to hire a new courier or redraw the delivery route — the logging agent is already in place and ready to pick up logs.
An illustrated three-story apartment building labeled "A new tenant moves in," showing cartoon tenant icons on the left and network-like cables running between units. One top-floor unit is highlighted in blue with moving boxes inside.
We deploy Alloy as a DaemonSet, so every node in the cluster runs the same Fluent Bit–based agent. That agent watches the node’s containers and automatically begins collecting logs for any pod that starts on that node. This setup is application-agnostic: the agent does not need per-application configuration to discover and collect logs. Fluent Bit commonly operates by tailing the container log files on each node and using the Kubernetes API to enrich records with pod metadata (labels, namespace, pod name, etc.). As soon as a container writes logs, the agent picks them up — just like the tenant receiving mail on day one. Example: a minimal Deployment for an application that requires no special logging config
How it works (high level)
  1. The DaemonSet runs Fluent Bit on every node.
  2. Fluent Bit tails container log files on the node (typically under /var/log/containers/).
  3. Fluent Bit queries the Kubernetes API to enrich logs with pod metadata (labels, namespace, etc.).
  4. Enriched log records are forwarded to your log backend (e.g., Grafana Loki, Elasticsearch).
Permissions and requirements
No per-application logging configuration is required. As long as the DaemonSet agent runs and has permission to access node container log files and to read pod metadata from the Kubernetes API (RBAC for pod metadata), it will automatically collect logs from newly created pods. pods/log permission is only required if the agent is configured to fetch logs via the API rather than tailing node files.
Links and references

Watch Video