背景:
elasticsearch version 6.2
curator version 5.4.1.
现在我可以使用 curator 删除一个订购 7 天的索引,但是我有多个索引并且我不想创建多个 action.yml,例如:
actions:
1:
action: delete_indices
description: >-
Delete indices older than 7 days (based on index name), for student-prefixed indices. Ignore the error if the filter does not result in an actionable list of indices (ignore_empty_list) and exit cleanly.
options:
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: student=
- filtertype: age
source: name
direction: older
timestring: '%Y-%m-%d'
unit: days
unit_count: 7
根据这个action.yml,它删除了student=2017-XX-XX。但是我有很多指标,比如老师、家长等等。我用 *= 替换了 studnet= 但不起作用。
那么我能做什么呢?非常感谢。