Loki logs `maximum active stream limit exceeded, reduce the number of active streams`
AdvancedTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer
Likely causes → High-cardinality labels in logs: trace_id, user_id, request_id, or JSON-extracted fields promoted to labels.
Diagnose →
logcli series --analyze-labels '{}' --since=1h
Look for labels with thousands of unique values.
Fix → Remove those labels from the agent pipeline (keep them in the line or as structured metadata in Loki 3.x) and filter at query time with | json | trace_id="...".
Prevent → Allowlist labels in agent config; max_global_streams_per_user as a guardrail.
More on Logging: Loki, Fluent Bit and Elasticsearch
Promtail/Alloy logs `server returned HTTP status 400 Bad Request (400): entry with timestamp ... ignored, reason: 'entry out of order' for stream`IntermediateAgents log `server returned HTTP status 429 Too Many Requests (429): Ingestion rate limit exceeded for user fake (limit: 4194304 bytes/sec)`IntermediateLoki rejects pushes with `Per stream rate limit exceeded (limit: 3MB/sec) while attempting to ingest for stream`AdvancedLogQL query fails with `max entries limit per query exceeded, limit > max_entries_limit (10000 > 5000)`BeginnerLogQL returns `too many outstanding requests` in GrafanaAdvancedLogs appear in Loki for most pods but not for one namespaceBeginner