I am referring to above document to automate rollover with ILM.
I am doing it without data streams and by using an ILM index alias,
I created a lifecycle policy as named as timeseires_policy with below setting
{
"index": {
"lifecycle": {
"name": "timeseries_policy",
"rollover_alias": "timeseries"
},
"number_of_shards": "1",
"number_of_replicas": "1"
}
}
i have assigned the ILM policy to index template.
I have created a bootstrap index named timeseries-00001 with below setting
{
"index.blocks.read_only_allow_delete": "false",
"index.query.default_field": [
"*"
],
"index.refresh_interval": "1s",
"index.write.wait_for_active_shards": "1",
"index.lifecycle.name": "timeseries_policy",
"index.lifecycle.rollover_alias": "timeseries",
"index.priority": "100",
"index.number_of_replicas": "1"
}
then i created two indexes timeseries-2021.01-27 and timeeries.2021.01.28
the index rollover is not working as expected and i get the below error
Index lifecycle error
illegal_argument_exception: index.lifecycle.rollover_alias [timeseries] does not point to index [timeseries-2021.01.27]
Not sure what is missing in order to make this work. Please Help.