blob: fe7383de535f7cbe8030c6a68de03f057975b273 [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: >-
Ramon Melerof1fcc922018-05-03 11:52:15 -050015 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
Ondrej Smola03ff34e2016-12-01 01:30:33 +010016 options:
17 ignore_empty_list: True
18 continue_if_exception: False
19 disable_action: False
20 filters:
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000021 - filtertype: pattern
22 kind: regex
23 value: "${_param:elasticsearch_curator_indices_pattern}"
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000024 - filtertype: age
Ramon Melerof1fcc922018-05-03 11:52:15 -050025 source: creation_date
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000026 direction: older
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000027 unit: days
28 unit_count: ${_param:elasticsearch_curator_retention_period}
Ondrej Smola9afc3e42017-06-15 15:38:33 +020029 - action: delete_indices
30 description: >-
Ramon Melerof1fcc922018-05-03 11:52:15 -050031 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
Ondrej Smola9afc3e42017-06-15 15:38:33 +020032 options:
33 ignore_empty_list: True
Ondrej Smola9afc3e42017-06-15 15:38:33 +020034 continue_if_exception: False
35 disable_action: False
36 filters:
37 - filtertype: pattern
38 kind: regex
39 value: "^events_.*$"
Ondrej Smola9afc3e42017-06-15 15:38:33 +020040 - filtertype: age
Ramon Melerof1fcc922018-05-03 11:52:15 -050041 source: creation_date
Ondrej Smola9afc3e42017-06-15 15:38:33 +020042 direction: older
Ondrej Smola9afc3e42017-06-15 15:38:33 +020043 unit: days
44 unit_count: ${_param:elasticsearch_curator_retention_period}