# Index name does not match pattern

**URL:** <https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [January 6, 2021, 2:14pm UTC](https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351 "2021-01-06T14:14:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokul6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gokul6/32/84049_2.png) [@Gokul6](https://discuss.elastic.co/u/Gokul6)\
**Post date:** [January 6, 2021, 2:14pm UTC](https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351/1 "2021-01-06T14:14:15Z")

</div>

we have an index named **drivers-history** , by default this index doesn't have an **alias** so i created one as **drivers\_history** using **update index alias api**. later i created an **ILM policy** and attached it to this index but i am getting the following error during ILM execution **index name [drivers-history] does not match pattern**.  
i read the below documentation from elastic search and it suggested that if my index name doesn't match the required pattern i can specify a name for new index.

 ![ILM](https://us1.discourse-cdn.com/elastic/original/3X/2/0/204338e82ea2248fd43d834870cdea8d9412e30a.png)

but i am not using **rollover index API** to rollover my index, i am using an ILM policy to do so. how to fix this error please help 🙂

---

<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:** [January 6, 2021, 8:32pm UTC](https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351/2 "2021-01-06T20:32:30Z")

</div>

It'd be useful if you could share the policy and other related commands you ran to set things up.

---

<div class="post-metadata">

**Author:** ![Gokul6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gokul6/32/84049_2.png) [@Gokul6](https://discuss.elastic.co/u/Gokul6)\
**Post date:** [January 7, 2021, 3:17am UTC](https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351/3 "2021-01-07T03:17:23Z")

</div>

![index](https://us1.discourse-cdn.com/elastic/original/3X/6/5/65d1c366d649b3eb6a27f4fb026b95feaa348a40.png)

PUT \_ilm/policy/drivers-history  
{  
"policy": {  
"phases": {  
"hot": {  
"min\_age": "0ms",  
"actions": {  
"rollover": {  
"max\_size": "50gb",  
"max\_age": "30m"  
},  
"set\_priority": {  
"priority": 100  
}  
}  
},  
"warm": {  
"min\_age": "1d",  
"actions": {  
"set\_priority": {  
"priority": 50  
}  
}  
},  
"cold": {  
"min\_age": "7d",  
"actions": {  
"freeze": {}  
}  
},  
"delete": {  
"min\_age": "1d",  
"actions": {}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Gokul6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gokul6/32/84049_2.png) [@Gokul6](https://discuss.elastic.co/u/Gokul6)\
**Post date:** [January 7, 2021, 3:19am UTC](https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351/4 "2021-01-07T03:19:54Z")

</div>

![ILM](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c0404ce7e4438a5ec946b5923f97f089f7321bd.jpeg) @warkolm

---

<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:** [February 4, 2021, 3:20am UTC](https://discuss.elastic.co/t/index-name-does-not-match-pattern/260351/5 "2021-02-04T03:20:28Z")

</div>

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