Hi,
I want to define two aliases to index with rollover.
I have set the following:
PUT _ilm/policy/policy1
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_primary_shard_size": "40gb"
}
}
},
"delete": {
"min_age": "7d",
"actions": {
"delete": {}
}
}
}
}
}
POST _aliases
{
"actions": [
{
"add": {
"index": "index1-2022.10.18-000001",
"alias": "alias1",
"is_write_index": true
}
},
{
"add": {
"index": "index1-2022.10.18-000001",
"alias": "alias2"
}
}
]
}
After rollover is performed and new index created: index1-2022.10.18-000002, I see that only alias1 assigned to it, without alias2.
What need to be done in order that alias2 will be assigned as well to the new index.
Thanks...