Hello Neha,
Now I understand what you were asking, sorry. For the currently created indexes, you need to apply it manually, you can filter and select all at once and apply it. For future and new indexes, precisely the ism_template field that you have used correctly, will take care of applying that policy to all the indexes that match those parameters, so you should have no problem:
"ism_template": [
{
"index_patterns": [
"wazuh-alerts-*"
],
"priority": 1
}
]
Now all future indices created using the wazuh-alerts-4.x-* index pattern will be allocated to a hot node. After the min_index_age condition is met, the indices are moved to a warm node and all replicas removed. The removal of the replicas ensures that storage is managed on the warm node since the data will not be queried frequently.
If you encounter any problems or questions, I will be happy to help further.
Best regards,
Jose