0

如何使用ElasticSearch curator删除与特定模式匹配的旧索引。像这样使用curator将删除所有索引而不是匹配模式的索引:

curator --host <ip address> delete indices --time-unit days --older-than 45 --timestring '%Y%m%d'

假设要删除 45 天前匹配的索引sample_index_*,该怎么做?

4

1 回答 1

1

尝试这个:

馆长 --host 删除索引 --time-unit days --older-than 45 --timestring '%Y%m%d' --prefix sample_

除了前缀选项,您还可以使用后缀和正则表达式

于 2016-03-17T01:34:27.177 回答