# How to correct custom logstash index name for use by ILM

**URL:** <https://discuss.elastic.co/t/how-to-correct-custom-logstash-index-name-for-use-by-ilm/246346>\
**Category:** Logstash\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 25, 2020, 6:50pm UTC](https://discuss.elastic.co/t/how-to-correct-custom-logstash-index-name-for-use-by-ilm/246346 "2020-08-25T18:50:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hueyg](https://avatars.discourse-cdn.com/v4/letter/h/8c91f0/32.png) [@hueyg](https://discuss.elastic.co/u/hueyg)\
**Post date:** [August 26, 2020, 7:12pm UTC](https://discuss.elastic.co/t/how-to-correct-custom-logstash-index-name-for-use-by-ilm/246346/3 "2020-08-26T19:12:30Z")

</div>

Sorry, here is the other thread that details my problem exactly, with a hint at a solution but I unfortunately needed more details concerning fixing the index name:

> [@Index lifecycle error - illegal\_argument\_exception: index.lifecycle.rollover\_alias](https://discuss.elastic.co/t/index-lifecycle-error-illegal-argument-exception-index-lifecycle-rollover-alias/207900):
>
> Hello Team, Could you please help me with sorting out the following error while implementing ILM? Referred link [https://www.elastic.co/guide/en/elasticsearch/reference/7.4/getting-started-index-lifecycle-management.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/getting-started-index-lifecycle-management.html) Index lifecycle error illegal\_argument\_exception: index.lifecycle.rollover\_alias [temprule] does not point to index [templogs-2019.11] Current action rollover Failed step check-rollover-ready Current phase hot Show phase definition { "index.blocks.read\_only\_allow\_de…

Here is my error:

```
illegal_argument_exception: index.lifecycle.rollover_alias [filebeat-7.8.0] does not point to index [asa-2020.08.18]

```

My simple policy is this:

`PUT _ilm/policy/Delete-After-7 { "policy": { "phases": { "hot": { "min_age": "0ms", "actions": {} }, "delete": { "min_age": "7d", "actions": { "delete": {} } } } } }`

Not sure how to format about code, the back tic is not working for me. Apologies.

Also not sure how to post template as there is tons of information, however it is the default Filbeat 7.8 template with the only change that I applied the template to also include "asa-\*" which is not functioning as far as ILM

---

_[View the full topic](https://discuss.elastic.co/t/how-to-correct-custom-logstash-index-name-for-use-by-ilm/246346)._
