# Index lifecycle error - illegal\_argument\_exception:index name does not match pattern '^.\*-\\d+$' -Use Retry But Getting same error after sometime

**URL:** <https://discuss.elastic.co/t/index-lifecycle-error-illegal-argument-exception-index-name-does-not-match-pattern-d-use-retry-but-getting-same-error-after-sometime/299660>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [March 14, 2022, 7:50pm UTC](https://discuss.elastic.co/t/index-lifecycle-error-illegal-argument-exception-index-name-does-not-match-pattern-d-use-retry-but-getting-same-error-after-sometime/299660 "2022-03-14T19:50:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musku](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/musku/32/101814_2.png) [@musku](https://discuss.elastic.co/u/musku)\
**Post date:** [March 14, 2022, 7:50pm UTC](https://discuss.elastic.co/t/index-lifecycle-error-illegal-argument-exception-index-name-does-not-match-pattern-d-use-retry-but-getting-same-error-after-sometime/299660/1 "2022-03-14T19:50:33Z")

</div>

Hi Team,  
I have created ilm , Template and alias respectively as i am getting illegal\_argument\_exception: index name [rebalance\_index\_001] does not match pattern '^.\*-\d+$'. error. I have run retry ilm command . I don't see error for few minutes but again sometime i am getting same error.  
Could someone please help me on this .

PUT \_ilm/policy/rebalance\_index\_ilm  
{  
"policy": {  
"phases": {  
"hot": {  
"actions": {  
"rollover": {  
"max\_age": "1d",  
"max\_size": "80gb"  
}  
}  
},  
"delete": {  
"min\_age": "30d",  
"actions": {  
"delete": {}  
}  
}  
}  
}  
}

PUT _template/rebalance\_index\_template  
{  
"settings": {  
"number\_of\_shards": 4,  
"number\_of\_replicas": 1,  
"index.lifecycle.name": "rebalance\_index\_ilm",  
"index.lifecycle.rollover\_alias": "rebalance\_index",  
"index.routing.allocation.total\_shards\_per\_node": "2"  
},  
"index\_patterns": [  
"rebalance\_index_\*"  
],  
"mappings": {  
"properties": {  
"errortype":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"startTime":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"endTime": {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"key\_id":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"Details":{  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"feed\_name":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"status":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"last\_modified":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"es\_id":{  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
}  
}  
}  
}

PUT rebalance\_index\_001  
{"aliases": {"rebalance\_index":{"is\_write\_index": true}}}

POST rebalance\_index\_001/\_ilm/retry

 ![Screen Shot 2022-03-14 at 3.15.50 PM](https://us1.discourse-cdn.com/elastic/original/3X/2/1/21a04200b23a5c22f05e76bb75fc5c443c9c10f4.png)

---

<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:** [April 11, 2022, 7:50pm UTC](https://discuss.elastic.co/t/index-lifecycle-error-illegal-argument-exception-index-name-does-not-match-pattern-d-use-retry-but-getting-same-error-after-sometime/299660/2 "2022-04-11T19:50:38Z")

</div>

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