# Know if one or more indexes are marked as read only

**URL:** <https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585>\
**Category:** Elasticsearch\
**Created:** [March 23, 2020, 2:58am UTC](https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585 "2020-03-23T02:58:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veeresh\_Reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veeresh_reddy/32/58906_2.png) [@Veeresh\_Reddy](https://discuss.elastic.co/u/Veeresh_Reddy)\
**Post date:** [March 23, 2020, 2:58am UTC](https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585/1 "2020-03-23T02:58:53Z")

</div>

When an elastic index moves into a read only state, it can prevent additional data being written to the cluster. Typically a read only state occurs when an index in on a node that reaches 85% disk space used.

The cluster does have an API to get details for each index, so it may be possible to scan each index and check if it's in read only state.

- how to know if one or more indexes are marked as read only, would you please let me know?
- how can we generate an alert somewhere - likely grafana - when this happens  
Note: we use cerebro ES admin tool as well

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 23, 2020, 10:53am UTC](https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585/2 "2020-03-23T10:53:40Z")

</div>

You can retrieve the settings of all indices, and check for the index blocks settings, and probably especially for the one that only allows deletes. See [https://www.elastic.co/guide/en/elasticsearch/reference/7.6/disk-allocator.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/disk-allocator.html)

Just a side note, newer Elasticsearch releases will automatically change the index to be writeable again, since version 7.4.

---

<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:** [April 20, 2020, 10:53am UTC](https://discuss.elastic.co/t/know-if-one-or-more-indexes-are-marked-as-read-only/224585/3 "2020-04-20T10:53:47Z")

</div>

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