1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:27 +02:00
dockerfiles/elk
2018-01-16 10:30:12 +08:00
..
arm/elasticsearch update 2016-11-01 18:24:37 +08:00
data update elk 2018-01-06 21:38:57 +08:00
delete-indices.yml add script for elk 2018-01-16 10:30:12 +08:00
docker-compose.yml update elk 2018-01-06 21:38:57 +08:00
README.md add script for elk 2018-01-16 10:30:12 +08:00

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