Elasticsearch 6.2.4 only keep data for 2 months

I have setup the following:
[txt log files] -> Filebeat -> Logstash -> Elasticsearch -> Kibana

Now I want to have Elasticsearch to keep log data for two months.
How can I configure it?
I cant see any property for it in elasticsearch yml file.

(I have Red Hat Enterprise 6.9.)

Have a look at Curator project: https://www.elastic.co/guide/en/elasticsearch/client/curator/5.5/index.html

So I installed Curator.
Now how do I actually run a script?

I guess this is what I am looking for:
https://www.elastic.co/guide/en/elasticsearch/client/curator/5.5/ex_delete_indices.html

1 Like

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