blob: a73ef44a65dad586f073bb53955f4ff879462f80 [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
Dmitry Teselkin986260f2018-08-30 19:07:25 +03005 linux:
6 system:
7 cron:
8 user:
9 elasticsearch:
10 enabled: true
Ondrej Smola03ff34e2016-12-01 01:30:33 +010011 elasticsearch:
12 server:
13 curator:
14 timeout: 900
15 logfile: /var/log/elasticsearch/curator.log
16 logformat: json
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000017 master_only: true
Ondrej Smola03ff34e2016-12-01 01:30:33 +010018 actions:
19 - action: delete_indices
20 description: >-
Ramon Melerof1fcc922018-05-03 11:52:15 -050021 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
Ondrej Smola03ff34e2016-12-01 01:30:33 +010022 options:
23 ignore_empty_list: True
24 continue_if_exception: False
25 disable_action: False
26 filters:
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000027 - filtertype: pattern
28 kind: regex
29 value: "${_param:elasticsearch_curator_indices_pattern}"
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000030 - filtertype: age
Ramon Melerof1fcc922018-05-03 11:52:15 -050031 source: creation_date
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000032 direction: older
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000033 unit: days
34 unit_count: ${_param:elasticsearch_curator_retention_period}
Ondrej Smola9afc3e42017-06-15 15:38:33 +020035 - action: delete_indices
36 description: >-
Ramon Melerof1fcc922018-05-03 11:52:15 -050037 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
Ondrej Smola9afc3e42017-06-15 15:38:33 +020038 options:
39 ignore_empty_list: True
Ondrej Smola9afc3e42017-06-15 15:38:33 +020040 continue_if_exception: False
41 disable_action: False
42 filters:
43 - filtertype: pattern
44 kind: regex
45 value: "^events_.*$"
Ondrej Smola9afc3e42017-06-15 15:38:33 +020046 - filtertype: age
Ramon Melerof1fcc922018-05-03 11:52:15 -050047 source: creation_date
Ondrej Smola9afc3e42017-06-15 15:38:33 +020048 direction: older
Ondrej Smola9afc3e42017-06-15 15:38:33 +020049 unit: days
50 unit_count: ${_param:elasticsearch_curator_retention_period}