是否可以将ES Index Lifecycle Management设置为基于名称删除索引,该名称中包含日期,即my_index_yyyy_MM_dd,而不是索引年龄?
发布于 2019-04-10 00:19:54
不幸的是,no - ILM只支持基于年龄的相变,据我所知,这是由索引creation_date确定的。
要支持模式匹配删除,我建议使用Curator (https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete_indices.html)的delete_indices操作,并根据您的用例使用适当的过滤器。
https://stackoverflow.com/questions/55596212
复制相似问题