Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 1 | parameters: |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 2 | _param: |
| 3 | elasticsearch_curator_indices_pattern: "^(log|notification)-.*$" |
| 4 | elasticsearch_curator_retention_period: 31 |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 5 | elasticsearch: |
| 6 | server: |
| 7 | curator: |
| 8 | timeout: 900 |
| 9 | logfile: /var/log/elasticsearch/curator.log |
| 10 | logformat: json |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 11 | master_only: true |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 12 | actions: |
| 13 | - action: delete_indices |
| 14 | description: >- |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 15 | Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date). |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 16 | options: |
| 17 | ignore_empty_list: True |
| 18 | continue_if_exception: False |
| 19 | disable_action: False |
| 20 | filters: |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 21 | - filtertype: pattern |
| 22 | kind: regex |
| 23 | value: "${_param:elasticsearch_curator_indices_pattern}" |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 24 | - filtertype: age |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 25 | source: creation_date |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 26 | direction: older |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 27 | unit: days |
| 28 | unit_count: ${_param:elasticsearch_curator_retention_period} |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 29 | - action: delete_indices |
| 30 | description: >- |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 31 | Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date). |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 32 | options: |
| 33 | ignore_empty_list: True |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 34 | continue_if_exception: False |
| 35 | disable_action: False |
| 36 | filters: |
| 37 | - filtertype: pattern |
| 38 | kind: regex |
| 39 | value: "^events_.*$" |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 40 | - filtertype: age |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 41 | source: creation_date |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 42 | direction: older |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 43 | unit: days |
| 44 | unit_count: ${_param:elasticsearch_curator_retention_period} |