mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
.. | ||
arm/elasticsearch | ||
data | ||
delete-indices.yml | ||
docker-compose.yml | ||
README.md |
ELK
- Elasticsearch
- Logstash
- Kibana
Delete indices older than 7 days
---
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
kind: prefix
value: logstash-
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 7
$ pip install elasticsearch-curator
$ curator delete-indices.yml