Run _ilm apis and get invalid_index_name_exception

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
}

ok, ilm is not available in 6.5 GA

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