[Fleet] Cleanup empty indices #138792
Labels
Feature:Fleet
Fleet team's agent central management project
Team:Fleet
Team label for Observability Data Collection Fleet team
I have a cluster running for a few years now and looking at the last year there are lots of empty indicies. The majority of these empty indices come from Fleet / data stream naming schema. Below is just an example but there are hundreds more:
I think many of these empty indices come from rollovers that had to be done based on time or changes in mappings. I was looking for an easy way to cleanup these indices and stumbled over elastic/elasticsearch#73349 for ILM in Elasticsearch and elastic/curator#1263 in curator.
On my end, I want to keep the old data but get rid of all the empty indices. I have not found a fully automated way yet to do this.
The discussion I would like to have here is, is there any value in keeping these empty indices in the first place? Should a data stream automatically take care of these empty indices and wipe then? I filed this in Kibana / Fleet because the rollovers are likely triggered by Fleet in many cases but I could well see that this is a problem that should be tackled by Elasticsearch.
The text was updated successfully, but these errors were encountered: