# Our elastic has set an index to read-only twice in the last two days

**URL:** <https://discuss.elastic.co/t/our-elastic-has-set-an-index-to-read-only-twice-in-the-last-two-days/236325>\
**Category:** Elastic Stack\
**Created:** [June 9, 2020, 11:53am UTC](https://discuss.elastic.co/t/our-elastic-has-set-an-index-to-read-only-twice-in-the-last-two-days/236325 "2020-06-09T11:53:04Z")\
**Posts on this page:** 2\
**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:** [June 9, 2020, 11:53am UTC](https://discuss.elastic.co/t/our-elastic-has-set-an-index-to-read-only-twice-in-the-last-two-days/236325/1 "2020-06-09T11:53:04Z")

</div>

Our elastic has set an index to read-only twice in the last two days. We should

1. Get notified when an index is in read-only
2. Delete old data instead of running out of space
3. option: set retention to 2 days
4. option: enable freespace-based retention policy (if it exists)

would anyone tell me how to do this please?

---

<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:** [November 4, 2022, 8:01am UTC](https://discuss.elastic.co/t/our-elastic-has-set-an-index-to-read-only-twice-in-the-last-two-days/236325/2 "2022-11-04T08:01:44Z")

</div>


