Hi,
Is there any setting which would auto Delete old indices on hitting the lower watermark setting? I could not find much information from the documentation regarding such a setting.
If not, how can this be done ?
Hi,
Is there any setting which would auto Delete old indices on hitting the lower watermark setting? I could not find much information from the documentation regarding such a setting.
If not, how can this be done ?
What is that?
AFAIK, You cannot delete based on size. Logically it does not make any sense.
As you say old
that means you refer to age/date created.
Cheers
It is not possible, to automatically delete indices you would use a Index Lifecycle policy, but these policies only support age
as a the parameter in the delete phase.
If you want to delete indices when your cluster reach the low watermark you would need to monitor your elasticsearch logs to see when it was reached and then trigger a request to delete some indice, but you would need to write this logic using an external tool and you would need to specify what index you want to delete.
It is best to set the deleta phase to delete indices after some time to avoid reaching the low watermark phase in your cluster
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.