# TOO\_MANY\_REQUESTS/12/index read-only / allow delete (api

**URL:** <https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/234901>\
**Category:** Logstash\
**Created:** [May 29, 2020, 10:23am UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/234901 "2020-05-29T10:23:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PraveenKT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveenkt/32/35483_2.png) [@PraveenKT](https://discuss.elastic.co/u/PraveenKT)\
**Post date:** [May 29, 2020, 10:23am UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/234901/1 "2020-05-29T10:23:56Z")

</div>

Why i am getting below logs in Logstash logs?

```auto
[2020-05-29T03:21:20,840][INFO][logstash.outputs.elasticsearch][main][220c76045b556cf67d246e54931c092b729b0e8dcc83cd8283a28d6d531fc2bd] retrying failed action with response code: 429 ({"type"=>"cluster_block_exception", "reason"=>"index [%{[@metadata][target_index]}] blocked by: [TOO_MANY_REQUESTS/12/index read-only / allow delete (api)];"})
[2020-05-29T03:21:20,840][INFO][logstash.outputs.elasticsearch][main][220c76045b556cf67d246e54931c092b729b0e8dcc83cd8283a28d6d531fc2bd] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:couch_and_lamp:

```

---

<div class="post-metadata">

**Author:** ![PraveenKT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveenkt/32/35483_2.png) [@PraveenKT](https://discuss.elastic.co/u/PraveenKT)\
**Post date:** [May 29, 2020, 10:33am UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/234901/2 "2020-05-29T10:33:05Z")

</div>

I already checked 80% free space on each es node  
Below is my logstash config file.

```auto
filter {
  if "ISSQHEART" in [tags] {
    mutate { add_field => { "[@metadata][target_index]" => "issqheart" } }
  } else if "ISSQMETRIC" in [tags] {
    mutate { add_field => { "[@metadata][target_index]" => "issqmetric"} }
  } else if "ISSQWIN" in [tags] {
    mutate { add_field => { "[@metadata][target_index]" => "issqwin" } }
  } else if "ISSQFILE" in [tags] {
    mutate { add_field => { "[@metadata][target_index]" => "issqfile" } }
  } else if "ISSQPACKET" in [tags] {
    mutate { add_field => { "[@metadata][target_index]" => "issqpacket" } }
  } else if "SNMP" in [tags] {
    mutate { add_field => { "[@metadata][target_index]" => "issqnet-%{+YYYY.MM.dd}" } }
  } else {
    mutate { add_field => { "[@metadata][target_index]" => "unknown" } }
  }
}
output {
  elasticsearch {
    hosts => ["http://x.x.x.x:9200", "http://x.x.x.x:9200", "http://x.x.x.x:9200"]
    index => "%{[@metadata][target_index]}"
 }}
```

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [May 29, 2020, 6:16pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/234901/3 "2020-05-29T18:16:31Z")

</div>

It looks like the logstash node is overloading your Elasticsearch cluster with a high amount of indexing. It would be best to take this question to the Elasticsearch channel in this Discuss forum, to talk about scaling up your cluster. (Or the Logstash channel, to talk about scaling down Logstash)

Cheers,  
-Tim

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 26, 2020, 6:16pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/234901/4 "2020-06-26T18:16:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
