stakater / bugs

Stakater issue tracker
0 stars 1 forks source link

Retire ES logs & configure cerebro / elasticsearch-kopf #162

Open rasheedamir opened 7 years ago

rasheedamir commented 7 years ago
hazim1093 commented 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

hazim1093 commented 7 years ago

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)

rasheedamir commented 6 years ago

Old ES log indices should be purged or moved to S3

Read this for understanding:

And then lets choose whichever is easier and better among them: