Your log volume is 5 TB/day. Should you put Kafka between shippers and the log backend?

AdvancedScenarioLogging Pipelines
Answer

Situation read → At this scale, backend maintenance, upgrades and spikes cause data loss without a buffer.

What I'd do →

  1. Shippers (Vector/Fluent Bit) write to Kafka topics partitioned by service or tenant.
  2. Consumers (Vector, Logstash, OTel Collector with Kafka receiver) read, enrich and write to Loki/ES/S3.
  3. Size retention on Kafka for at least 24–72 hours of replay.
  4. Monitor consumer lag as the key health metric for the pipeline.
  5. Use the same stream to fan out to SIEM and archive without double-shipping.

Why → Kafka decouples producers from consumers, absorbs spikes, and allows replay after an outage.

Interview tip → Mention the trade-off: one more stateful system to operate and secure. Below ~100 GB/day, disk buffering is usually enough.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging Pipelines