# Index lifecycle error and Index name error

**URL:** <https://discuss.elastic.co/t/index-lifecycle-error-and-index-name-error/217613>\
**Category:** Beats\
**Created:** [February 3, 2020, 11:12am UTC](https://discuss.elastic.co/t/index-lifecycle-error-and-index-name-error/217613 "2020-02-03T11:12:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_E](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_e/32/47012_2.png) [@Jose\_E](https://discuss.elastic.co/u/Jose_E)\
**Post date:** [February 3, 2020, 11:12am UTC](https://discuss.elastic.co/t/index-lifecycle-error-and-index-name-error/217613/1 "2020-02-03T11:12:52Z")

</div>

Hello, I was trying to change the index name you see in 'index management'. And even though I was successful, I now have an 'Index lifecycle' error. This is how my code looks like:  
setup.template.name: "filebeat-%{[agent.version]}-machine1"  
setup.template.pattern: "filebeat-%{[agent.version]}-machine1-\*"  
output.elasticsearch.index: "filebeat-%{[agent.version]}-machine1"  
setup.ilm.enabled: true  
setup.ilm.rollover\_alias: "filebeat-%{[agent.version]}-machine1"

The index name in index management shows like "filebeat-7.4.2-machine1-2020.01.17-000001", which I understand is correct in regards to the lifecycle management, however, I keep getting this error:  
illegal\_argument\_exception: index.lifecycle.rollover\_alias [filebeat-7.4.2-machine1-2020.01.17]  
does not point to index [filebeat-7.4.2-machine1-2020.01.17-000001]

I'm guessing this is a fairly simple configuration mistake on my part, but I really don't understand how to make it work and why... Could you please help me? My ultimate goal is simply to change the index name in "index management" so I can have a different index per machine.

---

<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:** [March 2, 2020, 1:24pm UTC](https://discuss.elastic.co/t/index-lifecycle-error-and-index-name-error/217613/2 "2020-03-02T13:24:31Z")

</div>

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