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

Fluent Bit CPU spikes and logs `[warn] [input:tail:tail.0] file=... has been rotated` thousands of times

AdvancedTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → Extremely chatty containers rotate their log every few seconds (kubelet containerLogMaxSize small), plus regex parsers on every line.

Diagnose → Find the noisy pods: du -sh /var/log/pods/* | sort -h | tail.

Fix → Fix the noisy app, raise containerLogMaxSize, use Refresh_Interval, Buffer_Max_Size sensibly, and prefer JSON parser over regex.

Prevent → Per-namespace log volume dashboards and quotas.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch