# ILP failed step: Index name does not match patten

**URL:** <https://discuss.elastic.co/t/ilp-failed-step-index-name-does-not-match-patten/191664>\
**Category:** Elasticsearch\
**Created:** [July 22, 2019, 2:57pm UTC](https://discuss.elastic.co/t/ilp-failed-step-index-name-does-not-match-patten/191664 "2019-07-22T14:57:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [July 22, 2019, 2:57pm UTC](https://discuss.elastic.co/t/ilp-failed-step-index-name-does-not-match-patten/191664/1 "2019-07-22T14:57:35Z")

</div>

Hi. We've been creating our index daily with the following pattern 'test-logs-_date_'. For example, today's index would be 'test-logs2019.07.22'.

I tried implementing Index Lifecycle Management/Index Lifecycle Policies and when the ILP was linked to the index, I got the following error:

"failed\_step" : "check-rollover-ready",  
"step\_info" : {  
"type" : "illegal\_argument\_exception",  
"reason" : "index name [test-logs-2019.07.19] does not match pattern '^.\*-\d+'", "stack\_trace" : """ java.lang.IllegalArgumentException: index name [test-logs-2019.07.19] does not match pattern '^.\*-\d+'  
at org.elasticsearch.action.admin.indices.rollover.TransportRolloverAction.generateRolloverIndexName(TransportRolloverAction.java:236)  
…  
…

I saw this when I executed "GET test-logs-2019.07.19/\_ilm/explain".

We are using ELK 7.0.

I know that in using the ILP/ILM, the index name should end in an incremental number, i.e. test-logs-0001. And this is where my issue is. My question is, is there a way to use ILP/ILM on indices that ends with the date instead of an incremental number?

---

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [July 23, 2019, 4:55pm UTC](https://discuss.elastic.co/t/ilp-failed-step-index-name-does-not-match-patten/191664/2 "2019-07-23T16:55:11Z")

</div>

Hello. I just want to follow-up on this.

---

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [July 24, 2019, 5:00pm UTC](https://discuss.elastic.co/t/ilp-failed-step-index-name-does-not-match-patten/191664/3 "2019-07-24T17:00:31Z")

</div>

Hi,  
Does anyone have an idea on how I can fix this issue and use a different pattern for index?

---

<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:** [August 21, 2019, 5:00pm UTC](https://discuss.elastic.co/t/ilp-failed-step-index-name-does-not-match-patten/191664/4 "2019-08-21T17:00:32Z")

</div>

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