如何使用ElasticSearch curator
删除与特定模式匹配的旧索引。像这样使用curator
将删除所有索引而不是匹配模式的索引:
curator --host <ip address> delete indices --time-unit days --older-than 45 --timestring '%Y%m%d'
假设要删除 45 天前匹配的索引sample_index_*
,该怎么做?
如何使用ElasticSearch curator
删除与特定模式匹配的旧索引。像这样使用curator
将删除所有索引而不是匹配模式的索引:
curator --host <ip address> delete indices --time-unit days --older-than 45 --timestring '%Y%m%d'
假设要删除 45 天前匹配的索引sample_index_*
,该怎么做?