How can we automatically delete elastic search data logs

i am using version 7.5.2 and the workflow is beats->logstash->elastic-search->kibana.

my elastic-search nodes are getting filled with the logs.

I can delete the indices automatically using the "delete" phase of lifecycle but wat about the logs which are taking up space in my ES nodes.

This doesn't exist at the moment, you may want to follow https://github.com/elastic/elasticsearch/issues/49392

so eventually, when you delete an index using the delete phase based on the roll size, the data inside the index will not be deleted.

Sorry, I totally misunderstood you somehow. I thought you were asking how to delete based on how much space you have on the node.

Yes, if you delete an index it deletes the data it holds.

awesome. that helps me in managing the disk space on my ES node.

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