1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/elk/README.md

38 lines
744 B
Markdown
Raw Normal View History

2016-10-29 07:20:25 +00:00
ELK
===
- Elasticsearch
- Logstash
- Kibana
2018-01-16 02:29:51 +00:00
## Delete indices older than 7 days
```yaml
---
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
```
```bash
$ pip install elasticsearch-curator
$ curator delete-indices.yml
```