# Elasticsearch curator connection failure?

**URL:** <https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318>\
**Category:** Elasticsearch\
**Created:** [March 3, 2017, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318 "2017-03-03T13:23:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [March 3, 2017, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/1 "2017-03-03T13:23:39Z")

</div>

Hi,

My indices are  
data-2017-02-22  
data-2017-02-23

When i want to delete the indices that are older than 4 days it is showing connection failure.  
Today date is 2017-03-03  
I don't have any username and pwd?

```
C:\Users\Yaswanth>curator --host 9200 delete indices --older-than 4 --time-unit da
ys --timestring '%Y-%m-%d' --prefix data
2017-03-03 18:49:19,461 INFO Job starting: delete indices
2017-03-03 18:49:28,548 ERROR Connection failure.

```

But i can able to view the indices without any connection failure..

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [March 3, 2017, 1:40pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/2 "2017-03-03T13:40:30Z")

</div>

Please read the curator documentation.  
`9200` is the port, not the host.

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [March 3, 2017, 1:44pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/3 "2017-03-03T13:44:21Z")

</div>

Thanks..i got that

```
C:\Users\571952>curator --host localhost --port 9200 show indices --older-than 4
 --time-unit days --timestring '%Y-%m-%d' --prefix data
2017-03-03 19:11:37,437 INFO Job starting: show indices
2017-03-03 19:11:37,453 WARNING No indices matched provided args: {'all_indice
s': False, 'index': (), 'closed_only': False, 'exclude': (), 'older_than': 4, 's
uffix': None, 'newer_than': None, 'regex': None, 'prefix': 'data', 'time
_unit': 'days', 'timestring': "'%Y-%m-%d'"}
No indices matched provided args: {'all_indices': False, 'index': (), 'closed_on
ly': False, 'exclude': (), 'older_than': 4, 'suffix': None, 'newer_than': None,
'regex': None, 'prefix': 'data', 'time_unit': 'days', 'timestring': "'%Y
-%m-%d'"}

```

Rather than showing data-2017-02-22,data-2017-02-23 indices ,i am getting no indices matched..Why?

Thanks.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 3, 2017, 2:48pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/4 "2017-03-03T14:48:46Z")

</div>

What version of Elasticsearch? Please upgrade to Curator 4.2.6 unless you are using Elasticsearch 1.x. I don't support Curator 3.x anymore.

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [March 3, 2017, 3:45pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/5 "2017-03-03T15:45:34Z")

</div>

Thanks..  
i am using ES 2.4.1.  
what is the problem with my above code?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 3, 2017, 3:59pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/6 "2017-03-03T15:59:50Z")

</div>

I can't tell, exactly. A lot of issues have been resolved since Curator 3.x, though, and the error messages will be easier to read.

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [March 3, 2017, 5:05pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/7 "2017-03-03T17:05:11Z")

</div>

1)Based on your suggestion i downloaded the Curator 4.2.6 for windows directly from [Elasticco](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/windows-zip.html) . But based on [Documenatation](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/command-line.html) in Elastic curator will search for --config file in the location `C:\Users\username\.curator\curator.yml` but i can t able see any thing in that location.  
2)When executing curator `curator [--config CONFIG.YML] [--dry-run] ACTION_FILE.YML`  
in the place of --config i have to give configfile.yml file location  
in the place of action i have to give actionfile.yml file location  
can i store any where these config and action files and provide path of it is enough?

ex: curator [c:\config.yml] [--dry.run] c:\action.yml

I am new to this curator ..

Thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 3, 2017, 5:37pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/8 "2017-03-03T17:37:46Z")

</div>

You can also use the [singleton action](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/singleton-cli.html) command, `curator_cli`, which is more like the Curator 3.x way of doing things. The major difference is that you need to format your `--filter_list` to be a JSON string.

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [March 3, 2017, 5:51pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/9 "2017-03-03T17:51:52Z")

</div>

Thanks..  
Using singleton action command can i able to send the indices that are older than 3 days, as a snapshot to my azure account.

---

<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:** [March 31, 2017, 5:52pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-connection-failure/77318/10 "2017-03-31T17:52:05Z")

</div>

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