Automatically delete month old indices every month

Hi everyone, I am new to Elasticsearch. I received an email notification that says " Your cluster is near its limit for storage space.". Btw, I am using function beat to transport logs from AWS Cloudwatch to Kibana. I was wondering how to automatically delete month old indices every month? Is there a way to schedule the deletion for a specified period? Thanks in advance, appreciate your help.

Check out ILM.

PS, we aren't all guys :slight_smile:

1 Like

Hi @warkolm, is it possible to enable the ILM if the functionbeat is already deployed? Given the index template is already in place but without a policy yet. If yes, how? Thanks

https://www.elastic.co/guide/en/elasticsearch/reference/7.9/ilm-with-existing-indices.html goes into that.

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