blob: 82f34bb6bcbe52cabce1e41ab5ae7c252d143b26 [file] [log] [blame]
Ondrej Smola03ff34e2016-12-01 01:30:33 +01001parameters:
Éric Lemoine9c08a5b2016-12-14 15:02:42 +00002 _param:
3 elasticsearch_curator_indices_pattern: "^(log|notification)-.*$"
4 elasticsearch_curator_retention_period: 31
Ondrej Smola03ff34e2016-12-01 01:30:33 +01005 elasticsearch:
6 server:
7 curator:
8 timeout: 900
9 logfile: /var/log/elasticsearch/curator.log
10 logformat: json
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000011 master_only: true
Ondrej Smola03ff34e2016-12-01 01:30:33 +010012 actions:
13 - action: delete_indices
14 description: >-
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000015 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index name).
Ondrej Smola03ff34e2016-12-01 01:30:33 +010016 options:
17 ignore_empty_list: True
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000018 timeout_override:
Ondrej Smola03ff34e2016-12-01 01:30:33 +010019 continue_if_exception: False
20 disable_action: False
21 filters:
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000022 - filtertype: pattern
23 kind: regex
24 value: "${_param:elasticsearch_curator_indices_pattern}"
25 exclude:
26 - filtertype: age
27 source: name
28 direction: older
29 timestring: '%Y.%m.%d'
30 unit: days
31 unit_count: ${_param:elasticsearch_curator_retention_period}
32 exclude: