Open rasheedamir opened 7 years ago
Additional Information: Installing curator via pip:
pip install elasticsearch-curator
Curator requires two files, a configuration file and an action file
References: https://www.elastic.co/guide/en/elasticsearch/client/curator/4.2/configfile.html https://www.elastic.co/guide/en/elasticsearch/client/curator/4.2/actionfile.html
sample action file to delete indices: https://www.elastic.co/guide/en/elasticsearch/client/curator/current/ex_delete_indices.html
Possible solution: Create a cron job or similar which executes curator after a certain period of time
One possible sequence of actions would be to delete indices older than e.g. 60 days and close indices older than 30 days
Reference: http://www.ragingcomputer.com/2014/02/removing-old-records-for-logstash-elasticsearch-kibana (uses old version of curator)
Read this for understanding:
And then lets choose whichever is easier and better among them: