# Logstash created Index || index.lifecycle.rollover\_alias is empty or not defined

**URL:** <https://discuss.elastic.co/t/logstash-created-index-index-lifecycle-rollover-alias-is-empty-or-not-defined/272240>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 6, 2021, 5:37am UTC](https://discuss.elastic.co/t/logstash-created-index-index-lifecycle-rollover-alias-is-empty-or-not-defined/272240 "2021-05-06T05:37:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boris\_Joseph](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boris_joseph/32/76499_2.png) [@Boris\_Joseph](https://discuss.elastic.co/u/Boris_Joseph)\
**Post date:** [May 6, 2021, 5:37am UTC](https://discuss.elastic.co/t/logstash-created-index-index-lifecycle-rollover-alias-is-empty-or-not-defined/272240/1 "2021-05-06T05:37:39Z")

</div>

Hi Elastic Team,

- I have Indices in my Elastic cluster created from logstash based on date regex.
- And these indices can be deleted after 3 days.
- but below error comes up for all indices.

`***Index lifecycle error illegal_argument_exception: setting [index.lifecycle.rollover_alias] for index [jh_application-2021-04-20] is empty or not defined***`

logstash + ILM config is as below.  
Please help troubleshoot the case.

`_output{_

- 

```
           elasticsearch {*

```

- 

```
                           hosts => ["DATANODE1","DATANODE2","DATANODE3"]*

```

- 

```
                           index => "myindex-%{+YYYY-MM-dd}"*

```

- 

```
           }*

```

_}_`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/7/77b7c2ed45b603b5b2741abc45daf698405a5635.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dc516553a7f45c8c6224672062912259ff492aa1.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 10, 2021, 11:31pm UTC](https://discuss.elastic.co/t/logstash-created-index-index-lifecycle-rollover-alias-is-empty-or-not-defined/272240/2 "2021-05-10T23:31:37Z")

</div>

When writing to an ILM policy you should have the write alias defined in the `index` setting of your Logstash output. Don't use the traditional way of date based patterns like you have.

---

<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:** [June 7, 2021, 11:32pm UTC](https://discuss.elastic.co/t/logstash-created-index-index-lifecycle-rollover-alias-is-empty-or-not-defined/272240/3 "2021-06-07T23:32:26Z")

</div>

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