Can someone explain to me what the purpose of the data retention field is in an index template?
My understanding is that the ILM is responsible for moving data between phases, rollover and optionally deletion. What is the effect of setting e.g. 3 hours data retention on the index template but then setting 1 day on the delete phase in the relevant ILM?
The template.lifecycle. data_retention field is how you configure the new Datastream Lifecycle management (DLM), an alternative to ILM that is built right into the datastream settings: Data stream lifecycle | Elasticsearch Guide [8.16] | Elastic
You do not have to use it but it can simplify management in many use-cases.
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.