We have an existing ES system, and I would like to add a template that will give us timestamp based aliases upon index creation.
So, for example, I see from here that I can use an index macro for the index name in an alias, a la
{
"template" : "cisco*",
"aliases" : {
"{index}-alias" : {}
}
}
which would supply an alias with "cisco-alias".
What I want to see is an "cisco-2016-12-12" alias, that gets generated upon creation.
Is there a way to do this? So an equivalent to something like
"aliases" : {
"{index}-{YYYY-MMM-dd}" : {}
}
Thank you.