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

Elasticsearch logs `this action would add [2] shards, but this cluster currently has [1000]/[1000] maximum normal shards open`

IntermediateTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → Daily indices per app with default shards exceeded cluster.max_shards_per_node (1000 per non-frozen data node).

Diagnose → _cat/indices?v&s=index and _cluster/stats shard count.

Fix → Delete or shrink old indices, merge per-app indices into data streams with ILM rollover by size.

Prevent → Fewer, bigger shards; do not raise the limit as a fix.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch