I have ISM policy to perform rollover
{
"policy": {
"policy_id": "my_ism",
"description": "my_ism",
"last_updated_time": 1629016126477,
"schema_version": 1,
"error_notification": null,
"default_state": "ReadWrite",
"states": [
{
"name": "ReadWrite",
"actions": [
{
"rollover": {
"min_index_age": "3m"
}
}
],
"transitions": [
{
"state_name": "ReadOnly",
"conditions": {
"min_index_age": "3m"
}
}
]
},
{
"name": "ReadOnly",
"actions": [
{
"read_only": {}
}
],
"transitions": [
{
"state_name": "Delete",
"conditions": {
"min_index_age": "5h"
}
}
]
},
{
"name": "Delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"my_index*"
],
"priority": 100,
"last_updated_time": 1628845455505
}
]
}
}
In addition i have an alias for the first index
{
"my_index-000001" : {
"aliases" : {
"my_index" : { }
}
}
}
The ISM rollover the index and new one is created , but the alias “my_index” now points to the new index “my_index-000002” , and the old index has no alias. With ILM the alias is exist for both indices , but ISM removes alias for the old index . Is it expected ?