# Curator configuation

**URL:** <https://discuss.elastic.co/t/curator-configuation/214279>\
**Category:** Elasticsearch\
**Created:** [January 8, 2020, 4:56pm UTC](https://discuss.elastic.co/t/curator-configuation/214279 "2020-01-08T16:56:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dev\_Chakraborty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev_chakraborty/32/45546_2.png) [@Dev\_Chakraborty](https://discuss.elastic.co/u/Dev_Chakraborty)\
**Post date:** [January 8, 2020, 4:56pm UTC](https://discuss.elastic.co/t/curator-configuation/214279/1 "2020-01-08T16:56:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [January 8, 2020, 5:23pm UTC](https://discuss.elastic.co/t/curator-configuation/214279/2 "2020-01-08T17:23:57Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Dev\_Chakraborty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev_chakraborty/32/45546_2.png) [@Dev\_Chakraborty](https://discuss.elastic.co/u/Dev_Chakraborty)\
**Post date:** [January 9, 2020, 5:48am UTC](https://discuss.elastic.co/t/curator-configuation/214279/3 "2020-01-09T05:48:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dev\_Chakraborty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev_chakraborty/32/45546_2.png) [@Dev\_Chakraborty](https://discuss.elastic.co/u/Dev_Chakraborty)\
**Post date:** [January 9, 2020, 4:41pm UTC](https://discuss.elastic.co/t/curator-configuation/214279/4 "2020-01-09T16:41:14Z")

</div>

I got it rectified by giving 127.0.0.1, Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 6, 2020, 4:41pm UTC](https://discuss.elastic.co/t/curator-configuation/214279/5 "2020-02-06T16:41:19Z")

</div>

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