i wanna ask about index and retention. so here is the question
in my Elasticsearch i have created index automatically and give them policy to go away after 5 days. the problem is they don't want to be deleted automatically. when i check GET _cat/indices?v I can still see the index from 5 months ago. What do you think caused the incident?. please let me know, your help will mean a lot. thanks
What does the 5-days-default lifecycle policy look like? The fix I linked to was related to how Kibana creates ILM policies. If you have created it using old version or manually you might still have an incorrect policy in place.
Hello,
You are using data stream, can you show the output section regarding the index target of your beat/logstash ?
The weird thing is that your policy has a rollover every 30d (or when the primary shard is 50gb) but your backing indices are new every day. That is why i'm asking the previous question.
Regarding the ilm policy itself, the "max_age" inside the hot rollover phase should be 5d instead of 30d, and the "min_age" inside the delete phase should be 0d. This way the indices will do a rollover after 5 days and be deleted right after. The rollover is used to create a new write index, when using data stream you don't have to create aliases it's automaticaly configured.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.