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: |
Dmitry Kalashnik | aafc298 | 2018-10-22 17:41:51 +0400 | [diff] [blame] | 3 | elasticsearch_curator_indices_pattern: "^(log|audit)-.*$" |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 4 | elasticsearch_curator_retention_period: 31 |
Dmitry Kalashnik | aafc298 | 2018-10-22 17:41:51 +0400 | [diff] [blame] | 5 | elasticsearch_curator_notifications_retention_period: 90 |
Dmitry Teselkin | 986260f | 2018-08-30 19:07:25 +0300 | [diff] [blame] | 6 | linux: |
| 7 | system: |
| 8 | cron: |
| 9 | user: |
| 10 | elasticsearch: |
| 11 | enabled: true |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 12 | elasticsearch: |
| 13 | server: |
| 14 | curator: |
| 15 | timeout: 900 |
| 16 | logfile: /var/log/elasticsearch/curator.log |
| 17 | logformat: json |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 18 | master_only: true |
Ondrej Smola | 03ff34e | 2016-12-01 01:30:33 +0100 | [diff] [blame] | 19 | actions: |
| 20 | - action: delete_indices |
| 21 | description: >- |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 22 | 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] | 23 | options: |
| 24 | ignore_empty_list: True |
| 25 | continue_if_exception: False |
| 26 | disable_action: False |
| 27 | filters: |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 28 | - filtertype: pattern |
| 29 | kind: regex |
| 30 | value: "${_param:elasticsearch_curator_indices_pattern}" |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 31 | - filtertype: age |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 32 | source: creation_date |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 33 | direction: older |
Éric Lemoine | 9c08a5b | 2016-12-14 15:02:42 +0000 | [diff] [blame] | 34 | unit: days |
| 35 | unit_count: ${_param:elasticsearch_curator_retention_period} |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 36 | - action: delete_indices |
| 37 | description: >- |
Dmitry Kalashnik | aafc298 | 2018-10-22 17:41:51 +0400 | [diff] [blame] | 38 | 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 Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 54 | 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] | 55 | options: |
| 56 | ignore_empty_list: True |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 57 | continue_if_exception: False |
| 58 | disable_action: False |
| 59 | filters: |
| 60 | - filtertype: pattern |
| 61 | kind: regex |
| 62 | value: "^events_.*$" |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 63 | - filtertype: age |
Ramon Melero | f1fcc92 | 2018-05-03 11:52:15 -0500 | [diff] [blame] | 64 | source: creation_date |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 65 | direction: older |
Ondrej Smola | 9afc3e4 | 2017-06-15 15:38:33 +0200 | [diff] [blame] | 66 | unit: days |
| 67 | unit_count: ${_param:elasticsearch_curator_retention_period} |