# Using ILM: error's on more then one write index

**URL:** https://discuss.elastic.co/t/using-ilm-errors-on-more-then-one-write-index/272804
**Category:** Logstash
**Tags:** ilm-index-lifecycle-management
**Created:** [May 12, 2021, 11:55am UTC](https://discuss.elastic.co/t/using-ilm-errors-on-more-then-one-write-index/272804 "2021-05-12T11:55:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Stef\_Nestor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stef_nestor/32/85483_2.png) [@Stef\_Nestor](https://discuss.elastic.co/u/Stef_Nestor)
#### Post date: [August 3, 2021, 11:15pm UTC](https://discuss.elastic.co/t/using-ilm-errors-on-more-then-one-write-index/272804/5 "2021-08-03T23:15:21Z")

</div>

For future note when searched, this is now answered in the blog [Troubleshooting ILM blog](https://www.elastic.co/blog/troubleshooting-elasticsearch-ilm-common-issues-and-fixes) & direct summarized discussed error resolutions are:

> **`alias [x] has more than one write index [y,z]`**
> 
> When you run [Get Aliases](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html), you’ll notice that two indices are marked as `is_write_index:true` when only one should be per alias. You’ll want to toggle `is_write_index:false` on one of the indices via the [Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html).

> **`index name [x] does not match pattern `** \ ***`^.*-\d+`**
> 
> The index name’s regex pattern matching is a prerequisite for rollover to work. The most common implication users miss is not realizing the index name needs to end with trailing digits, e.g. _my-index-000001_ and instead only use _my-index_ which does match the pattern requirement. Here’s an example [Elastic Discuss issue](https://discuss.elastic.co/t/using-rollover-got-error/84869). You may consider [Data Streams](https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html) which handle this for you.

---

_[View the full topic](https://discuss.elastic.co/t/using-ilm-errors-on-more-then-one-write-index/272804)._
