ELK-Stack (Elasticsearch Kibana Logstash) – Index not writable (read-only)

Error: [INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({“type”=>”cluster_block_exception”, “reason”=>”blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];”})
Log-Message
[INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=>"cluster_block_exception", "reason"=>"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"})

Resolution

1. Cleanup your disk or expand it
2. Set Indices to “read_only_allow_delete”: “false”

You can do this over Kibana –> Dev Tools

Or via curl

curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": false}'

Leave a Reply

Your email address will not be published. Required fields are marked *