以下 elasticsearch curator (如下)设置curator-actions.yml
被配置为根据年龄过滤器删除索引,但我想设置一个适用于翻转的配置,如下所示:
仅保留最后一个索引和新创建的翻转索引 -> 从而在翻转成功后删除所有其他索引。实现这一目标的最佳方法是什么?可以在代码中使用 NEST 吗?
这是我当前的删除操作...非常感谢任何帮助,谢谢!
在curator-actions.yml中
action: delete_indices
description: >-
Delete indices older than 3 days (based on index creation date)
options:
ignore_empty_list: True
continue_if_exception: True
filters:
- filtertype: pattern
kind: prefix
value: applogging-test
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: 3