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

Elasticsearch logs `flood stage disk watermark [95%] exceeded ... all indices on this node will be marked read-only` and writes fail with `FORBIDDEN/12/index read-only / allow delete (api)`

IntermediateTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → Disk on a data node passed the flood-stage watermark; ES set index.blocks.read_only_allow_delete on its indices.

Diagnose →

curl -s 'es:9200/_cat/allocation?v'
curl -s 'es:9200/_all/_settings/index.blocks*?pretty' | grep -B3 true

Fix → Free space (delete old indices, add nodes or disk). Since 7.4 the block is removed automatically once usage drops below the high watermark; on older versions:

curl -XPUT es:9200/_all/_settings -H 'Content-Type: application/json' \
  -d '{"index.blocks.read_only_allow_delete": null}'

Prevent → ILM delete phase and alerts at 75% disk.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch