# Run \_ilm apis and get invalid\_index\_name\_exception

**URL:** <https://discuss.elastic.co/t/run-ilm-apis-and-get-invalid-index-name-exception/158590>\
**Category:** Elasticsearch\
**Created:** [November 28, 2018, 2:50pm UTC](https://discuss.elastic.co/t/run-ilm-apis-and-get-invalid-index-name-exception/158590 "2018-11-28T14:50:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heng\_Zhang](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@Heng\_Zhang](https://discuss.elastic.co/u/Heng_Zhang)\
**Post date:** [November 28, 2018, 2:50pm UTC](https://discuss.elastic.co/t/run-ilm-apis-and-get-invalid-index-name-exception/158590/1 "2018-11-28T14:50:55Z")

</div>

I tried to run the following API in my elastic cluster with version 6.5 and got error of invalid\_index\_name\_exception. I also tried the api of POST /\_ilm/start and got the same error. could you advice a solution?

my cluster has not security set up, i can access it without authentication and authorization.

PUT /\_ilm/policy/test\_policy  
{  
"policy": {  
"phases": {  
"hot": {  
"actions": {  
"rollover": {  
"max\_size": "100GB",  
"max\_age": "1h",  
"max\_docs": 1000000  
}  
}  
},  
"warm": {  
"actions": {  
"forcemerge" : {  
"max\_num\_segments": 1  
}  
}  
},  
"delete": {  
"min\_age": "3h",  
"actions": {  
"delete": {}  
}  
}  
}  
}  
}

full error text here  
{  
"error": {  
"root\_cause": [  
{  
"type": "invalid\_index\_name\_exception",  
"reason": "Invalid index name [_ilm], must not start with '_', '-', or '+'",  
"index\_uuid": "_na_",  
"index": "\_ilm"  
}  
],  
"type": "invalid\_index\_name\_exception",  
"reason": "Invalid index name [_ilm], must not start with '_', '-', or '+'",  
"index\_uuid": "_na_",  
"index": "\_ilm"  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![Heng\_Zhang](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@Heng\_Zhang](https://discuss.elastic.co/u/Heng_Zhang)\
**Post date:** [November 28, 2018, 10:17pm UTC](https://discuss.elastic.co/t/run-ilm-apis-and-get-invalid-index-name-exception/158590/2 "2018-11-28T22:17:59Z")

</div>

ok, ilm is not available in 6.5 GA

---

<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:** [December 26, 2018, 10:17pm UTC](https://discuss.elastic.co/t/run-ilm-apis-and-get-invalid-index-name-exception/158590/3 "2018-12-26T22:17:59Z")

</div>

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