blob: 26349eb55d0c4efe8dc04ea88e892064edf2f860 [file] [log] [blame]
parameters:
_param:
elasticsearch_curator_indices_pattern: "^(log|audit)-.*$"
elasticsearch_curator_retention_period: 31
elasticsearch_curator_notifications_retention_period: 90
linux:
system:
cron:
user:
elasticsearch:
enabled: true
elasticsearch:
server:
curator:
timeout: 900
logfile: /var/log/elasticsearch/curator.log
logformat: json
master_only: true
actions:
- action: delete_indices
description: >-
Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
options:
ignore_empty_list: True
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "${_param:elasticsearch_curator_indices_pattern}"
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: ${_param:elasticsearch_curator_retention_period}
- action: delete_indices
description: >-
Delete indices older than ${_param:elasticsearch_curator_notifications_retention_period} days (based on index creation date).
options:
ignore_empty_list: True
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "^notification-.*$"
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: ${_param:elasticsearch_curator_notifications_retention_period}
- action: delete_indices
description: >-
Delete indices older than ${_param:elasticsearch_curator_retention_period} days (based on index creation date).
options:
ignore_empty_list: True
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: "^events_.*$"
- filtertype: age
source: creation_date
direction: older
unit: days
unit_count: ${_param:elasticsearch_curator_retention_period}