# Curator 5.5.1 Problem

**URL:** https://discuss.elastic.co/t/curator-5-5-1-problem/131150
**Category:** Elasticsearch
**Created:** [May 9, 2018, 9:41am UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150 "2018-05-09T09:41:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hoff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hoff/32/30963_2.png) [@hoff](https://discuss.elastic.co/u/hoff)
#### Post date: [May 9, 2018, 9:41am UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150/1 "2018-05-09T09:41:34Z")

</div>

Hello, I have a question about the compatibility of curator 5.5.1 with elasticsearch 6.2.3. I created curator.yml and action.yml. When trying to run the curator with the command `curator --config /home/rejnet/curator/curator.yml --dry-run /home/rejnet/curator/delete_index.yml`  
nothing happens.

curator,yml :

```
---
client:
  hosts:
    - 192.168.2.2
  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: []

```

delete\_index.yml :

```
---
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True. If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
  1:
    action: delete_indices
    description: >-
      Delete indices older than 10 days (based on index name), for suricata-
      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: True
    filters:
    - filtertype: pattern
      kind: prefix
      value: suricata-
      exclude:
    - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 10
      exclude:
 2:
    action: delete_indices
    options:
      continue_if_exception: 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: 10
 3:
    action: delete_indices
    options:
      continue_if_exception: True
      disable_action: False
    filters:
    - filtertype: pattern
      kind: prefix
      value: snmp-
       - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 10
4:
    action: delete_indices
    options:
      continue_if_exception: 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: 10
5:
    action: delete_indices
    options:
      continue_if_exception: True
      disable_action: False
    filters:
    - filtertype: pattern
      kind: prefix
      value: logstash-
    - filtertype: age
      source: name
      direction: older
      timestring: '%Y.%m.%d'
      unit: days
      unit_count: 10

```

Have you ever met anyone with such a problem?

---

<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: [May 9, 2018, 9:58pm UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150/2 "2018-05-09T21:58:05Z")

</div>

A recent joke about YAML formatting errors was that it should instead be labeled, "A Series of Unfortunate Indents."

The 4 and the 5 are not indented properly, and so Curator cannot make sense of the file.

---

<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: [May 10, 2018, 12:36am UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150/3 "2018-05-10T00:36:33Z")

</div>

> [@hoff](#):
>
> --dry-run

as i know ,this only test not delete the index... see the log..

---

<div class="post-metadata">

### Author: ![hoff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hoff/32/30963_2.png) [@hoff](https://discuss.elastic.co/u/hoff)
#### Post date: [May 11, 2018, 6:41am UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150/4 "2018-05-11T06:41:01Z")

</div>

Thank you for the answers, the problem was about inappropriate indents in the yaml file, just like theuntergeek wrote.

---

<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: [June 8, 2018, 6:41am UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150/5 "2018-06-08T06:41:06Z")

</div>

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