Good morning,
I wanna delete the older index from kibana and I wanna user curator.
First , I've get the index that I've in kibana
curl -XGET 'localhost:9200/_cat/indices?v&pretty'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open twitter-traffic vFCR7_41QHyKgI0J8oPkbw 5 1 9924 0 51mb 51mb
yellow open pan-traffic 1dIt-MZbTmeARb-a5YAsSQ 5 1 139262798 0 112.6gb 112.6gb
yellow open .kibana KOgWNAvPQ467H1d8s7-wlg 1 1 47 2 149.1kb 149.1kb
My action file is the following
---
actions:
1:
action: delete_indices
description: >-
Delete indices older than 45 days (based on index name), for pan-traffic
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
timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: pan-traffic,twitter-traffic
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 45
The config file
client:
hosts:
- 127.0.0.1
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth:
timeout: 30
master_only: False
the execution of the following command is the following
2017-08-16 10:10:37,488 INFO Preparing Action ID: 1, "delete_indices"
2017-08-16 10:10:37,503 INFO Trying Action ID: 1, "delete_indices": Delete indices older than 45 days (based on index name), for pan-traffic prefixed indices. Ignore the error if the filter does not result in an actionable list of indices (ignore_empty_list) and exit cleanly.
2017-08-16 10:10:37,569 INFO Skipping action "delete_indices" due to empty list: <class 'curator.exceptions.NoIndices'>
2017-08-16 10:10:37,569 INFO Action ID: 1, "delete_indices" completed.
2017-08-16 10:10:37,569 INFO Job completed.
any ideas whats wrong?
kindly regards