How to create aliases in index Template for last 7 days?

Hi,

How can i able to create aliases in a index Template in such a way it will create alias for last 7 days indices.

IS there any way to do that? Because my data comes every day ln a index like
data-jan-2017,

Thanks

You can't remove an alias from an index with a template, but you can add one.
To remove them, look at Elasticsearch Curator - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html.

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