Hi, we use daily indices and currently use an ILM policy to delete indices after n days. However, we have some indices each day that don't end up having documents and would like to delete those after 1 day instead of keeping them around for the full n days.
Can we specify an ILM policy to delete an index after 1 day if it's empty but keep it for n days if it isn't empty?
No, this is not possible, ILM works on entire indices, and for the DELETE phase it doesn't matter if they have documents or not, they will be deleted by age.
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.