I have an elastic search alias named "enrich" and it is defined in index template. How can I remove indices older than 15 days from "enrich" alias automatically?
I am aware of below command but this is manual and I am looking for an automatic solution.
POST /_aliases
{
"actions" : [
{ "remove" : { "index" : "test1", "alias" : "enrich" } }
]
}
thanks for helping.