# Keep getting "Index Lifecycle error"

**URL:** <https://discuss.elastic.co/t/keep-getting-index-lifecycle-error/212868>\
**Category:** Kibana\
**Created:** [December 23, 2019, 4:17pm UTC](https://discuss.elastic.co/t/keep-getting-index-lifecycle-error/212868 "2019-12-23T16:17:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apollyon](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Apollyon](https://discuss.elastic.co/u/Apollyon)\
**Post date:** [December 23, 2019, 4:17pm UTC](https://discuss.elastic.co/t/keep-getting-index-lifecycle-error/212868/1 "2019-12-23T16:17:27Z")

</div>

Hello,  
I am using ELK 7.5.1.

I keep seeing this error when going on the Index Management page.

```
illegal_argument_exception: source alias [rollover-index] does not point to a write index

```

The Lifecycle Policy is pointing to the correct one.  
In the Index Template that is in use shows in the settings the **index.lifecycle.name** and **index.lifecycle.rollover\_alias**. However, when getting to the **Aliases** section of the template set up. When I go to add the alias with the below config. After saving the template and viewing the alias set up again it only shows the alias name and not the "is\_write\_index" setting.

```
"rollover-index": { "is_write_index": true }

```

Also, when trying to do this, just before saving the template. On going to the **Request** tab, is displays the full input of the alias setting. Shown below. But this also shows the same behavior as above.

```
"aliases": {
  "rollover-index": { "is_write_index": true }
}

```

Would there be a work around with this or is there a particular way to set up this?  
Probably me being slow as normal but have been racking my head with this and tried everything I could think of.

Thank you in advance 🙂

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 23, 2019, 11:32pm UTC](https://discuss.elastic.co/t/keep-getting-index-lifecycle-error/212868/2 "2019-12-23T23:32:16Z")

</div>

@alisongoryachev @cjcenizal can we get some help here?

Thanks,  
Bhavya

---

<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:46pm UTC](https://discuss.elastic.co/t/keep-getting-index-lifecycle-error/212868/3 "2019-12-23T23:46:20Z")

</div>

A couple things:

1. The `is_write_index` alias config **should not** be set in the template, it should be set in the create index request used to create the first index. If you leave that in the template, you will experience errors when the second index is created. This is a bit counterintuitive, I'll admit - basically, ILM creates the new index, and then once the index has been fully created, swaps which index is the write index, and having the `is_write_index` config in the template interferes with this process.
2. It's not clear from your post whether you just changed the template, or updated the index itself. Just changing the template will not retroactively update the index if it's already been created. If you just changed the template, you'll need to update the index that already exists.

---

<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:** [January 20, 2020, 11:49pm UTC](https://discuss.elastic.co/t/keep-getting-index-lifecycle-error/212868/4 "2020-01-20T23:49:13Z")

</div>

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