Curator configuation

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

I don't think you set any hosts:, it should be something like:

hosts:
  - server1.my.dns
  - localhost
  - 192.168.0.5

In my case its one server which has elastissearch and Kibana , and as a hosts I have tried giving localhost and Server IP but that's not working.

I got it rectified by giving 127.0.0.1, Thanks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.