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

Fluent Bit logs `[warn] [input] tail.0 paused (mem buf overlimit)` and logs go missing

IntermediateTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → Mem_Buf_Limit is reached because the output is slower than input (backpressure); while paused, new lines are not read and rotated files can be lost.

Diagnose →

curl -s http://127.0.0.1:2020/api/v1/metrics | jq

Check fluentbit_input_paused, output retries and errors.

Fix → Enable filesystem buffering so data spills to disk instead of pausing:

[SERVICE]
    storage.path  /var/fluent-bit/state/flb-storage/
[INPUT]
    Name          tail
    storage.type  filesystem

Fix the slow output (scale Elasticsearch/Loki, increase Workers).

Prevent → Alert on paused inputs and on fluentbit_output_dropped_records_total.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch