fuel-ccp-stacklight/service/files/curator-action-delete-indic...

30 lines
831 B
Django/Jinja

---
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
actions:
1:
action: delete_indices
description: >-
Delete indices older than {{ elasticsearch_retention_period }} days
(based on index name), for 'log-' 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
timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: log-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: {{ elasticsearch_retention_period }}
exclude: