blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]

I was working around ELK (Elasticsearch, Logstash, and Kibana) stack in windows 10 environment for an end to end analytics. And when I tried to delete existing “Index Pattern” from Kibana, suddenly I started getting this error-  blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];: [cluster_block_exception] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];. But this is just a small issue of read/write access.

Here is the Solution for blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]  error:

  1. Open Kibana http://localhost:5601 in the browser
  2. Go to the “Dev Tools” option and either run the following script
PUT .kibana/_settings
{
"index": {
"blocks": {
"read_only_allow_delete": false
}
}
}

or

PUT  index_name/_settings
{
"index": {
"blocks": {
"read_only_allow_delete": false
}
}
}
  1. The result should be like this
{
"acknowledged": true
}

[FORBIDDEN/12/index read-only-elasticsearch-ease2code


To delete Index_Pattern from Kibana you can use below option from left menu go to Management->IndexPattern  and select the pattern_name and click on delete icon.

[FORBIDDEN/12/index read-only-delete-index-pattern-ease2code

Alternatively, you can go to “Kibana DevTools” Option here you can execute below script.

[FORBIDDEN/12/index read-only-ease2code-elk-stack3

 

Here in this tutorial, I am using Kibana-6.1.2-windows-x86_64 with Elasticsearch-6.1.2 and Logstash-6.1.2 in the windows environment.

You can download latest ELK stack from its official website or below

  1. Elasticsearch – go to  https://www.elastic.co/downloads/elasticsearch
  2. Logstash– go to  https://www.elastic.co/downloads/logstash
  3. Kibana– go to https://www.elastic.co/downloads/kibana

Note: In my next article I am going to write about complete “ELK stack”. Ohh now it is called “Elastic Stack” as Elasticsearch adopted Logstash and Kibana both.

we are open for your suggestions because it can help us to improve a bit more. ww.ease2code.com

Comments

  1. Thanks іn favor of sharing ѕuch a nice opinion, paragraph is pleasant, thats why
    i have read it completely

Speak Your Mind

*