How do you prevent the logging pipeline from losing data during a backend outage?
IntermediateProductionLog Pipelines
Answer
- Disk-backed buffers on agents and aggregators (Fluent Bit
storage.type filesystem, Vectorbuffer.type = "disk"). - Retry with backoff and bounded queues.
- Kafka as a durable buffer for large setups.
- Monitor buffer usage and dropped records (
fluentbit_output_dropped_records_total,vector_buffer_events). - Decide explicitly what happens when buffers fill: drop oldest, block, or drop low-priority streams first.
More on Log Pipelines
What does a production log pipeline look like end to end?BeginnerWhy structured (JSON) logging, and what fields should every log line have?BeginnerFluent Bit, Vector, Grafana Alloy or the OpenTelemetry Collector: how do you choose a log agent?IntermediateWhy add an aggregation tier instead of sending directly from agents to the backend?IntermediateHow do you design log retention tiers?IntermediateHow do you scrub PII from logs in the pipeline?Intermediate