2018-01-16 04:29:51 +02:00
|
|
|
---
|
|
|
|
actions:
|
|
|
|
1:
|
|
|
|
action: delete_indices
|
|
|
|
description: >-
|
|
|
|
Delete indices older than 7 days (based on index name), for logstash-
|
|
|
|
prefixed indices. Ignore the error if the filter does not result in an
|
|
|
|
actionable list of indices (ignore_empty_list) and exit cleanly.
|
|
|
|
options:
|
|
|
|
ignore_empty_list: True
|
|
|
|
disable_action: False
|
|
|
|
filters:
|
|
|
|
- filtertype: pattern
|
2018-02-01 04:20:51 +02:00
|
|
|
kind: regex
|
|
|
|
value: '^\.?(logstash|reporting)-.'
|
2018-01-16 04:29:51 +02:00
|
|
|
- filtertype: age
|
|
|
|
source: name
|
|
|
|
direction: older
|
|
|
|
timestring: '%Y.%m.%d'
|
|
|
|
unit: days
|
|
|
|
unit_count: 7
|