Why add an aggregation tier instead of sending directly from agents to the backend?
IntermediateProductionLog Pipelines
Answer
- Buffering: absorbs backend outages and spikes (disk buffers, Kafka).
- Central processing: PII scrubbing, sampling, routing changed in one place, not on 2,000 nodes.
- Fan-out: same stream to Loki, SIEM and S3.
- Credentials: only the aggregator holds backend secrets.
- Cost control: drop or sample before paying for ingest.
For very large volume, put Kafka between agents and aggregators for durable buffering.
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?IntermediateHow do you design log retention tiers?IntermediateHow do you scrub PII from logs in the pipeline?IntermediateHow and when do you sample logs?Intermediate