blob: e4e5ace18b5a486c76c63ac19845d1deb7f3ba4e [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:
Ondrej Smola9afc3e42017-06-15 15:38:33 +020033 - action: delete_indices
34 description: >-
35 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index name).
36 options:
37 ignore_empty_list: True
38 timeout_override:
39 continue_if_exception: False
40 disable_action: False
41 filters:
42 - filtertype: pattern
43 kind: regex
44 value: "^events_.*$"
45 exclude:
46 - filtertype: age
47 source: name
48 direction: older
49 timestring: '%Y-%m-%d'
50 unit: days
51 unit_count: ${_param:elasticsearch_curator_retention_period}
52 exclude: