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

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

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