如何保留某些索引比其他索引更多的时间?

问题描述

我使用的是Elasticsearch 6.4,我有4个索引,其中2个需要将保留期限设置为60天,该如何设置?

解决方法

您必须在这2个对象上添加一个具有删除阶段的ILM,并且可能要一个彼此不同的对象(或者根本没有其他对象)

https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html