# Curator not working correctly

**URL:** <https://discuss.elastic.co/t/curator-not-working-correctly/179397>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [May 2, 2019, 2:54pm UTC](https://discuss.elastic.co/t/curator-not-working-correctly/179397 "2019-05-02T14:54:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanneu](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hanneu](https://discuss.elastic.co/u/Hanneu)\
**Post date:** [May 2, 2019, 2:54pm UTC](https://discuss.elastic.co/t/curator-not-working-correctly/179397/1 "2019-05-02T14:54:49Z")

</div>

Hello experts,  
For some reason, curator running on my ES single node cluster is not working correctly . Curator version is 5.4.1 Also, to add additional info, I strongly feel that issue is with delete\_indices.yml file because only the first conditional filter in my delete\_indices.yml works, rest other filters are simply ignored.  
actions:  
1:  
action: delete\_indices  
description: \>-  
Delete indices older than 30 days (based on index name), for ind\_ecs\_\*  
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  
filters:  
- filtertype: pattern  
kind: prefix  
value: '^(ind\_ecs\_occ\_msg\_counter-|ind\_ecs\_occ\_msg\_log-|ind\_ecs\_occ\_dm\_counter-|ind\_ecs\_occ\_dm\_log-|ind\_ecs\_airs\_counter-|ind\_ecs\_airs\_log-|ind\_ecs\_ccn\_counter-|ind\_ecs\_ccn\_log-|ind\_ecs\_sdp\_counter-|ind\_ecs\_sdp\_log-).\*$'  
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 5  
Could this be a syntax issue somewhere in my delete\_indices.yml? Attached is config.yml, delete\_indices.yml and curator log. Please let me know for more info. Thanks for your assistance!!

---

<div class="post-metadata">

**Author:** ![Hanneu](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hanneu](https://discuss.elastic.co/u/Hanneu)\
**Post date:** [May 2, 2019, 2:57pm UTC](https://discuss.elastic.co/t/curator-not-working-correctly/179397/2 "2019-05-02T14:57:30Z")

</div>

Delete\_indices.yml

actions:  
1:  
action: delete\_indices  
description: \>-  
Delete indices older than 30 days (based on index name), for ind\_ecs\_\*  
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  
filters:  
- filtertype: pattern  
kind: prefix  
value: '^(ind\_ecs\_occ\_msg\_counter-|ind\_ecs\_occ\_msg\_log-|ind\_ecs\_occ\_dm\_counter-|ind\_ecs\_occ\_dm\_log-|ind\_ecs\_airs\_counter-|ind\_ecs\_airs\_log-|ind\_ecs\_ccn\_counter-|ind\_ecs\_ccn\_log-|ind\_ecs\_sdp\_counter-|ind\_ecs\_sdp\_log-)._' - filtertype: age source: name direction: older timestring: '%Y.%m.%d' unit: days unit\_count: 5 2: action: delete\_indices description: \>- Delete indices older than 7 days (based on index name), for eccgw\_systemstat 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 filters: - filtertype: pattern kind: prefix value: '^(eccgw\_systemstat-).\*'  
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 7  
3:  
action: delete\_indices  
description: \>-  
Delete indices older than 30 days (based on index name), for eccgw\_stat  
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  
filters:  
- filtertype: pattern  
kind: prefix  
value: '^(eccgw\_stat-)._$'  
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 10

Config.yml

client:  
hosts:  
- 127.0.0.1  
port: 9200  
url\_prefix:  
use\_ssl: False  
certificate:  
client\_cert:  
client\_key:  
ssl\_no\_validate: False  
#http\_auth: ericadmin:q.3#edsM!  
timeout: 30  
master\_only: False

logging:  
loglevel: DEBUG  
logfile: '/var/log/curator/curator.log'  
logformat: default

---

<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 2, 2019, 3:34pm UTC](https://discuss.elastic.co/t/curator-not-working-correctly/179397/3 "2019-05-02T15:34:09Z")

</div>

Please properly paste your config files between triple back ticks, like this:

````
```
PASTE HERE
```

````

Without this, it's impossible to tell how your YAML is formatted, to look for indentation errors.

---

<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:** [May 30, 2019, 3:34pm UTC](https://discuss.elastic.co/t/curator-not-working-correctly/179397/4 "2019-05-30T15:34:22Z")

</div>

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