How do you route logs to different destinations by type?
IntermediateProductionLog Pipelines
Answer
Classify in the aggregator and route: application logs to Loki, audit/security logs to the SIEM and immutable S3, debug logs to a short-retention tenant or dropped, billing events to a data warehouse. In Vector, a route transform splits streams by VRL conditions; in the OTel Collector, the routing connector does the same. Each destination gets its own retention and access policy.
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