如何使用ElasticSearch curator
删除与特定模式匹配的旧索引。像这样使用curator
将删除所有索引,而不是与模式匹配的索引:
curator --host <ip address> delete indices --time-unit days --older-than 45 --timestring '%Y%m%d'
假设有人要从45天前删除与
sample_index_*
相匹配的索引,该如何处理?
最佳答案
试试这个:
策展人-主机删除索引-时间单位天数-大于45-时间字符串'%Y%m%d'-前缀sample_
除了前缀选项,您还可以使用后缀和正则表达式
关于elasticsearch - 删除与特定模式匹配的ElasticSearch索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36049375/