blob: a73ef44a65dad586f073bb53955f4ff879462f80 [file] [log] [blame]
parameters:
_param:
elasticsearch_curator_indices_pattern: "^(log|notification)-.*$"
elasticsearch_curator_retention_period: 31
linux:
system:
cron:
user:
elasticsearch:
enabled: true
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 creation date).
options:
ignore_empty_list: True
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "${_param:elasticsearch_curator_indices_pattern}"
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: ${_param:elasticsearch_curator_retention_period}
- action: delete_indices
description: >-
Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
options:
ignore_empty_list: True
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "^events_.*$"
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: ${_param:elasticsearch_curator_retention_period}