A service logs 50,000 identical `connection refused` lines per minute during an outage. How do you handle that?
BeginnerScenarioLogging Pipelines
Answer
Situation read → Log storms during incidents can overload the pipeline exactly when you need it.
What I'd do →
- In the app, rate-limit or deduplicate repeated errors (log once with a count every N seconds).
- In the shipper, throttle: Vector
throttletransform, Fluent Bitthrottlefilter. - Make sure per-stream limits in Loki protect other tenants.
- Track error rate as a metric instead, so the signal is not lost when logs are throttled.
Why → One error per second tells you the same as 800 per second, at a fraction of the cost.
Interview tip → Log storms are a classic way the observability stack fails during incidents.
More on Logging Pipelines
Developers SSH into servers and `grep` log files to debug. You are asked to centralise logging. Where do you start?BeginnerYour app writes free-text logs like `User 42 paid 19.99 in 340ms`. Why push for structured logging, and how?BeginnerLoki ingestion is failing with `stream limit exceeded` and the ingester memory is exploding. What happened?IntermediateFluent Bit pods on busy nodes are dropping logs during traffic spikes. How do you make the pipeline lossless?IntermediateThe Elasticsearch cluster for logs goes red every Monday after the weekend batch jobs. How do you stabilise it?AdvancedFinance says the log bill doubled in a quarter. How do you cut it without losing debugging ability?Intermediate