blob: 26349eb55d0c4efe8dc04ea88e892064edf2f860 [file] [log] [blame]
Ondrej Smola03ff34e2016-12-01 01:30:33 +01001parameters:
Éric Lemoine9c08a5b2016-12-14 15:02:42 +00002 _param:
Dmitry Kalashnikaafc2982018-10-22 17:41:51 +04003 elasticsearch_curator_indices_pattern: "^(log|audit)-.*$"
Éric Lemoine9c08a5b2016-12-14 15:02:42 +00004 elasticsearch_curator_retention_period: 31
Dmitry Kalashnikaafc2982018-10-22 17:41:51 +04005 elasticsearch_curator_notifications_retention_period: 90
Dmitry Teselkin986260f2018-08-30 19:07:25 +03006 linux:
7 system:
8 cron:
9 user:
10 elasticsearch:
11 enabled: true
Ondrej Smola03ff34e2016-12-01 01:30:33 +010012 elasticsearch:
13 server:
14 curator:
15 timeout: 900
16 logfile: /var/log/elasticsearch/curator.log
17 logformat: json
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000018 master_only: true
Ondrej Smola03ff34e2016-12-01 01:30:33 +010019 actions:
20 - action: delete_indices
21 description: >-
Ramon Melerof1fcc922018-05-03 11:52:15 -050022 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
Ondrej Smola03ff34e2016-12-01 01:30:33 +010023 options:
24 ignore_empty_list: True
25 continue_if_exception: False
26 disable_action: False
27 filters:
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000028 - filtertype: pattern
29 kind: regex
30 value: "${_param:elasticsearch_curator_indices_pattern}"
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000031 - filtertype: age
Ramon Melerof1fcc922018-05-03 11:52:15 -050032 source: creation_date
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000033 direction: older
Éric Lemoine9c08a5b2016-12-14 15:02:42 +000034 unit: days
35 unit_count: ${_param:elasticsearch_curator_retention_period}
Ondrej Smola9afc3e42017-06-15 15:38:33 +020036 - action: delete_indices
37 description: >-
Dmitry Kalashnikaafc2982018-10-22 17:41:51 +040038 Delete indices older than ${_param:elasticsearch_curator_notifications_retention_period} days (based on index creation date).
39 options:
40 ignore_empty_list: True
41 continue_if_exception: False
42 disable_action: False
43 filters:
44 - filtertype: pattern
45 kind: regex
46 value: "^notification-.*$"
47 - filtertype: age
48 source: creation_date
49 direction: older
50 unit: days
51 unit_count: ${_param:elasticsearch_curator_notifications_retention_period}
52 - action: delete_indices
53 description: >-
Ramon Melerof1fcc922018-05-03 11:52:15 -050054 Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
Ondrej Smola9afc3e42017-06-15 15:38:33 +020055 options:
56 ignore_empty_list: True
Ondrej Smola9afc3e42017-06-15 15:38:33 +020057 continue_if_exception: False
58 disable_action: False
59 filters:
60 - filtertype: pattern
61 kind: regex
62 value: "^events_.*$"
Ondrej Smola9afc3e42017-06-15 15:38:33 +020063 - filtertype: age
Ramon Melerof1fcc922018-05-03 11:52:15 -050064 source: creation_date
Ondrej Smola9afc3e42017-06-15 15:38:33 +020065 direction: older
Ondrej Smola9afc3e42017-06-15 15:38:33 +020066 unit: days
67 unit_count: ${_param:elasticsearch_curator_retention_period}