Alias applogs-team1 has more than one write index [ applogs-team1-000001 , applogs-team1-000002]

I have created Index pattern,ILM Policies(HOT and Warm tier), templates and aliases using the following settings.

PUT _index_template/applogs_template
{
"index_patterns": ["applogs-team1-*"],
"template": {
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1,
"index.lifecycle.name": "applog-custom-policy",
"index.lifecycle.rollover_alias": "applogs-team1"
}
}
}
POST _aliases
{
"actions": [
{
"add": {
"index": "applogs-team1-*",
"alias": "applogs-team1",
"is_write_index": true
}
}
]
}

After ILM rollover of index applogs-team1-000001 it is creating applogs-team1-000002 index. But writing the documents to old index(applogs-team1-000001).

Because write is pointing to old. As per my understanding write head should auto moved to new index i.e. applogs-team1-000002 once created.

Please let me know where I am missing.

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