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: >- |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 15 | Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index name). |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 16 | options: |
| 17 | ignore_empty_list: True |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 18 | timeout_override: |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 19 | continue_if_exception: False |
| 20 | disable_action: False |
| 21 | filters: |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 22 | - 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 Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 33 | - 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: |