Interview Prep/Monitoring & Observability/Logging: Loki, Fluent Bit and Elasticsearch

LogQL returns `too many outstanding requests` in Grafana

AdvancedTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → The query-frontend/scheduler queue is full: big time ranges split into many sub-queries with too few queriers.

Diagnose → cortex_query_scheduler_queue_length / loki_query_scheduler_queue_length, querier CPU.

Fix → Scale queriers, raise max_outstanding_requests_per_tenant, narrow label selectors (stream selector first, line filters before parsers).

Prevent → Put recording rules (Loki ruler) behind dashboards that query weeks of logs.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch