Delete Elasticsearch Indices older than 2 months

Hi Team,

I want to delete the elastic search indices older than 2 months. Can you please help me how can i do that?
My Elasticsearch version is 2.4.1.

Thanks

I'd look at curator: https://www.elastic.co/guide/en/elasticsearch/client/curator/5.4/index.html

Unless it's a one single operation you want to do and not a daily one.

1 Like

I was just thinking about what's the best way of doing this too what @dadoonet said appears to be the best way.

For Elasticsearch 2.4.1, you will want to use Curator v4.3.1. v5 only supports Elasticsearch 5.x and 6.x

Thanks a lot for your help.

Thanks a lot David, I will go with curator.

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