LogQL query fails with `max entries limit per query exceeded, limit > max_entries_limit (10000 > 5000)`
BeginnerTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer
Likely causes → The Grafana line limit or logcli --limit is above Loki's max_entries_limit_per_query.
Diagnose → Check Grafana data source "Maximum lines" and Loki limits_config.
Fix → Lower the client limit, narrow the query, or raise max_entries_limit_per_query.
Prevent → Use metric queries (count_over_time, rate) for overviews instead of pulling raw lines.
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`AdvancedLoki logs `maximum active stream limit exceeded, reduce the number of active streams`AdvancedLogQL returns `too many outstanding requests` in GrafanaAdvancedLogs appear in Loki for most pods but not for one namespaceBeginner