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: |