How long the data is being stored in Elastic

How long the data is being stored in Elastic?

How to purge it and control for how long is it stored?

Elasticsearch retains data until you delete it. In order to purge data from indices, doing so with curator is a very good and easy way of doing so. You can use curator's delete command to select indices that match certain criteria, such as how much space indices use, or how old they are.

Thanks tylerjl, I'm going to check the curator.