phaniamt / elasticsearch-diskspace-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cluster_block_exception [FORBIDDEN/12/index read-only / allow delete (api)];

check the diskspace in elasticsearch

Goto index_management and delete the old indexes then follow the any one of the solutions

Solution 1

Open dev_tools in kibna and run query

PUT _all/_settings
{
  "index": {
    "blocks": {
      "read_only_allow_delete": "false"
    }
  }
}

Solution 2

Run the below curl command

curl -XPUT -H "Content-Type: application/json" https://[YOUR_ELASTICSEARCH_ENDPOINT]:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

Note : change the elasticsearch url according to your elasticsearch

About