# There are some way to fix is\_write\_index=false for all my indexes?

**URL:** <https://discuss.elastic.co/t/there-are-some-way-to-fix-is-write-index-false-for-all-my-indexes/212823>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [December 23, 2019, 8:52am UTC](https://discuss.elastic.co/t/there-are-some-way-to-fix-is-write-index-false-for-all-my-indexes/212823 "2019-12-23T08:52:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gbrown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbrown/32/34482_2.png) [@gbrown](https://discuss.elastic.co/u/gbrown)\
**Post date:** [December 23, 2019, 11:55pm UTC](https://discuss.elastic.co/t/there-are-some-way-to-fix-is-write-index-false-for-all-my-indexes/212823/2 "2019-12-23T23:55:36Z")

</div>

This isn't a problem to be fixed on all your indices - you'll only need to fix one. In particular, you'll need to determine which index new data should be written to - this is probably the newest one for your version of Filebeat. You could also create a new one.

Once you've found that index, you'll need to use the [Update Index Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/indices-aliases.html#aliases-write-index) to configure that index with the alias `filebeat-<VERSION>` (fill in whatever your Filebeat version is there, or whatever index name you're using if not the standard Filebeat names) with `"is_write_index" : true` similar to the examples in the docs section linked above.

You should probably then check that ILM is working properly for that index (and your other indices, but that index in particular) using the [ILM explain API](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/ilm-explain-lifecycle.html), as sometimes it can encounter an error if the aliases get messed up. If ILM for that index is an error state, try the [Retry ILM policy API](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/ilm-retry-policy.html), which will likely get it straightened out. If not, post the output of the Explain API here and I'll do my best to help out.

---

_[View the full topic](https://discuss.elastic.co/t/there-are-some-way-to-fix-is-write-index-false-for-all-my-indexes/212823)._
