# Curator execution doesnt seem to give any output

**URL:** <https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477>\
**Category:** Elasticsearch\
**Created:** [December 28, 2017, 4:27pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477 "2017-12-28T16:27:26Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [December 28, 2017, 4:27pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/1 "2017-12-28T16:27:26Z")

</div>

Hello. I have installed curator (5.4.1) on one of my elatic nodes. When i try to run the following command (with or without the --dry-install) there is no output nor logs. Any ideas? It follows my config and action files as well.  
curator --config curator.yml --dry-run ACTION\_FILE.yml

curator.yml

```auto
    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

logging:
  loglevel: DEBUG
  logfile:/CA/curator/log.log
  logformat: default
  blacklist: ['elasticsearch', 'urllib3']

```

ACTION\_FILE.yml

```auto
  action: delete_indices
     description:
    options:
      ignore_empty_list: True
      disable_action: False
    filters:
    - filtertype: pattern
      kind: prefix
      value: metricbeat-
    - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 5

```

---

<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:** [December 28, 2017, 6:57pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/2 "2017-12-28T18:57:03Z")

</div>

I can’t tell if your configuration files are properly formatted and indented. Please edit and encapsulate your config files in triple back-ticks:

````
```
Paste here
```
````

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [December 28, 2017, 8:32pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/3 "2017-12-28T20:32:45Z")

</div>

> [@Daniel\_Braga](#):
>
> logfile:'/CA/curator/

Look likes a typo there? the ' just after logfile:

---

<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:** [December 28, 2017, 9:13pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/4 "2017-12-28T21:13:05Z")

</div>

Not having a closing quote would do it

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [December 29, 2017, 12:59am UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/5 "2017-12-29T00:59:35Z")

</div>

> [@Daniel\_Braga](#):
>
> logfile:'/CA/curator/

like this: this is a fire not a directory  
**logfile: /root/.curator/log.log**

---

<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:** [December 29, 2017, 1:16am UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/6 "2017-12-29T01:16:27Z")

</div>

Not to mention that `CA` would seem to indicate a Certificate Authority. Are you sure that's where you want your logs to go?

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [December 29, 2017, 12:31pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/7 "2017-12-29T12:31:17Z")

</div>

Thanks. I have just done that.

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [December 29, 2017, 12:33pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/8 "2017-12-29T12:33:39Z")

</div>

despite fixing that entry, the error persists . Curator itself seems to be working fine. It shows an error if i dont inform the action file, for example. So in short, it seems to run but it does nothing and it doesnt display any output.

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [December 29, 2017, 12:36pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/9 "2017-12-29T12:36:07Z")

</div>

CA means something else actually. I am using it only as the location for the curator application now.

---

<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:** [January 2, 2018, 5:00am UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/10 "2018-01-02T05:00:15Z")

</div>

> [@Daniel\_Braga](#):
>
> ```auto
> action: delete_indices
> description:
> options:
> ignore_empty_list: True
> disable_action: False
> filters:
> - filtertype: pattern
> kind: prefix
> value: metricbeat-
> - filtertype: age
> source: name
> direction: older
> timestring: '%Y.%m.%d'
> unit: days
> unit_count: 5
> 
> ```

Your action file YAML is formatted and indented incorrectly. It should be:

```auto
actions:
  1:
    action: delete_indices
      description:
    options:
      ignore_empty_list: True
      disable_action: False
    filters:
    - filtertype: pattern
      kind: prefix
      value: metricbeat-
    - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 5

```

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [January 4, 2018, 3:21pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/11 "2018-01-04T15:21:48Z")

</div>

Thanks @theuntergeek. I have tried again with your setup, unfortunatelly the issue persists. I wonder if there is a way to debug the error....It follows the action file again....

```auto
actions:
  1:
    action: delete_indices
      description:
    options:
      ignore_empty_list: True
      disable_action: False
    filters:
    - filtertype: pattern
      kind: prefix
      value: filebeat-
    - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 5

```

---

<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:** [January 4, 2018, 3:40pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/12 "2018-01-04T15:40:52Z")

</div>

Thank you for encapsulating your `curator.yml` file. When I see this:

> [@Daniel\_Braga](#):
>
> ```auto
> 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
> 
> logging:
> loglevel: DEBUG
> logfile:/CA/curator/log.log
> logformat: default
> blacklist: ['elasticsearch', 'urllib3']
> 
> ```

I still see improperly formatted YAML.

You should have this file formatted more like:

```auto
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

logging:
  loglevel: DEBUG
  logfile:/CA/curator/log.log
  logformat: default
  blacklist: ['elasticsearch', 'urllib3']

```

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [January 4, 2018, 6:20pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/13 "2018-01-04T18:20:19Z")

</div>

just tried what you suggested. no deal.

I wonder if the problem is more elemental. For example, maybe is not accepting the host name. I am logged on one of the cluster nodes, so i tried a varierty of changes, like using the ip of the current node, the other node, and both. No luck ☹

```auto
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

logging:
  loglevel: DEBUG
  logfile:/CA/curator/log.log
  logformat: default
  blacklist: ['elasticsearch', 'urllib3']

```

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [January 4, 2018, 6:32pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/14 "2018-01-04T18:32:49Z")

</div>

one more question. can i use the [clustar.name](http://clustar.name) on the hosts field?

---

<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:** [January 4, 2018, 6:39pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/15 "2018-01-04T18:39:15Z")

</div>

> [@Daniel\_Braga](#):
>
> ```auto
> logfile:/CA/curator/log.log
> 
> ```

Should have a space, and possibly quotes:

```auto
logfile: "/CA/curator/log.log"

```

Does the user have write access to this file?

---

<div class="post-metadata">

**Author:** ![Daniel\_Braga](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@Daniel\_Braga](https://discuss.elastic.co/u/Daniel_Braga)\
**Post date:** [January 4, 2018, 6:43pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/16 "2018-01-04T18:43:21Z")

</div>

bingo!  
I feel embarassed about that. thank you very much @theuntergeek for all the help

---

<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 1, 2018, 6:43pm UTC](https://discuss.elastic.co/t/curator-execution-doesnt-seem-to-give-any-output/113477/17 "2018-02-01T18:43:47Z")

</div>

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