Elasticsearch Index生命周期管理基于索引名称

问题描述 投票:0回答:1

是否可以设置ES Index Lifecycle Management来删除基于其中包含日期的名称的索引,即my_index_yyyy_MM_dd,而不是索引年龄?

elasticsearch lifecycle
1个回答
1
投票

不幸的是,没有 - ILM只支持基于年龄的相变,据我所知,这是由指数creation_date决定的。

为了支持模式匹配删除,我建议使用Curator(delete_indices)的https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete_indices.html动作和适合您的用例的过滤器。

© www.soinside.com 2019 - 2024. All rights reserved.