Interview Prep/Monitoring & Observability/Logging: Loki, Fluent Bit and Elasticsearch

Logs appear in Loki for most pods but not for one namespace

BeginnerTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → A relabel/drop rule in the agent excludes it, the pods log to files instead of stdout, or the agent pod on those nodes is not running.

Diagnose →

kubectl get ds -n logging
kubectl logs -n logging <agent-pod-on-that-node> | grep -i error

Check agent targets UI (Promtail :9080/targets, Alloy UI).

Fix → Fix drop rules, log to stdout/stderr, add tolerations for tainted nodes.

Prevent → Alert on agent DaemonSet coverage and on namespaces with zero log volume.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch