parameters: | |
_param: | |
elasticsearch_curator_indices_pattern: "^(log|notification)-.*$" | |
elasticsearch_curator_retention_period: 31 | |
elasticsearch: | |
server: | |
curator: | |
timeout: 900 | |
logfile: /var/log/elasticsearch/curator.log | |
logformat: json | |
master_only: true | |
actions: | |
- action: delete_indices | |
description: >- | |
Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index name). | |
options: | |
ignore_empty_list: True | |
timeout_override: | |
continue_if_exception: False | |
disable_action: False | |
filters: | |
- filtertype: pattern | |
kind: regex | |
value: "${_param:elasticsearch_curator_indices_pattern}" | |
exclude: | |
- filtertype: age | |
source: name | |
direction: older | |
timestring: '%Y.%m.%d' | |
unit: days | |
unit_count: ${_param:elasticsearch_curator_retention_period} | |
exclude: |