Hi Team,
I am using curator version 5.8.1 and I have setup the config file as below:
curator.yml
client:
hosts:
— serverIP or localhost
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth:
timeout: 30
master_only: False
logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['elasticsearch']
action.yml
actions:
1:
action: delete_indices
description: >-
Delete indices older than 30 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
timeout_override:
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: 'indices name'
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 30
exclude:
If I run the command curator --config curator.yml --dry-run action.yml getting below error:
INFO Preparing Action ID: 1, "delete_indices"
INFO Creating client object and testing connection
INFO Instantiating client object
INFO Testing client connectivity
Error Unable to connect to Elasticsearch cluster. Error: URL has an invalid label.
CRITICAL Curator cannot proceed. Exiting.
What could be the reason, can someone please help on this.
Regards
Deb