Is it possible to create aliases on a monthly basis using index templates?

HI,

My data comes daily and i want to store in monthly based aliases.

Template 1(It have to run for jan month(i.e 31days) after that automatically it have to use Template 2
{
"template" : "data-*",
"aliases" : {
"jan-2017" : {}
}
}

Template 2
{
"template" : "data-*",
"aliases" : {
"feb-2017" : {}
}
}

Like that it have to go on for 12 months .

Even if i use curator i have to run it for every month with different alias name?

How can i automate it in such a way in index template for a whole year?

Thanks

Because you are using date based aliases ES cannot handle that for you.

Thanks..

Then what ES will handle, then i will try on that?

And also can i automate index template in such a way it will run only for a month? Is it possible? How?

Thanks

ES handles more static aliases, like last-month, it can't do date math in templates.

Have you tried curator?

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