Centralised Kubernetes logs: collect, ship and search
13 steps · about 5 h 20 min · Intermediate
- Logging Architecture (doc, Kubernetes docs, 25 min)
Start with the official model: containers write to stdout, nodes hold the files, and Kubernetes ships no cluster-level store.
- Observability (doc, Kubernetes docs, 15 min)
Shows where logs sit among metrics and traces, and where a node agent such as Fluent Bit fits in a typical pipeline.
- What Is Kubernetes Logging? (article, Dash0, 15 min)
Explains why node-local logs vanish with pods and nodes, and why a DaemonSet agent usually beats sidecars.
- Kubernetes Logging with Fluent Bit and Grafana Loki (article, Coding Protocols, 15 min)
Traces the path from /var/log/containers symlinks through the agent and Loki to Grafana, so the install steps make sense.
- Loki overview (doc, Grafana Labs, 15 min)
Explains how Loki turns labelled streams into a cheap, queryable log store, before you install it.
- Get started with Grafana Loki (doc, Grafana Labs, 40 min)
The official path: install Loki with Helm, deploy Alloy to discover pod logs, then add Loki as a Grafana data source.
- How to Setup Grafana Loki on Kubernetes & Query Logs (tutorial, DevOpsCube, 45 min)
A step-by-step walkthrough with Helm values for Loki, Alloy and Grafana, to follow alongside the official guide.
- Kubernetes (Fluent Bit installation) (doc, Fluent Bit docs, 25 min)
Covers the alternative collector: Fluent Bit as a DaemonSet, installed with the Helm chart and enriching logs with pod metadata.
- Kubernetes Logging Fluent Bit Guide (guide, Kubernetes Recipes, 20 min)
Gives practical Fluent Bit settings, such as memory buffer limits and output choices, to harden your agent.
- Query Loki (doc, Grafana Labs, 30 min)
Teaches how streams, chunks, indexed labels and LogQL fit together so you can write queries that perform well.
- How to Build Grafana LogQL Queries for Loki (article, OneUptime, 25 min)
Gives worked LogQL patterns, from label matchers to metric queries, to practise in Grafana Explore.
- Install the simple scalable Helm chart (doc, Grafana Labs, 30 min)
The last step: move from a test setup to a scalable deployment with object storage.
- How to Collect Logs from Multiple Kubernetes Clusters into a Central Backend (article, OneUptime, 20 min)
Extends the single-cluster setup to several clusters sending logs to one central backend.