# Curator 4.x error unable to complete action

**URL:** <https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164>\
**Category:** Elasticsearch\
**Created:** [August 4, 2016, 12:20am UTC](https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164 "2016-08-04T00:20:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)\
**Post date:** [August 4, 2016, 12:20am UTC](https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164/1 "2016-08-04T00:20:33Z")

</div>

Hi, just installed curator 4.x but when run I get an error:

[root@elk01 curator]# curator --dry-run --config /etc/curator/config.yml /etc/curator/close.yml  
2016-08-04 10:13:58,583 INFO Action #1: close  
2016-08-04 10:13:58,637 ERROR Unable to complete action "close". No actionable items in list: \<class 'curator.exceptions.NoIndices'\>  
[root@elk01 curator]#

I have all my config and action files in /etc/curator/\*

Extract of my config file:

[root@elk01 curator]# cat config.yml  
client:  
hosts:  
- elk01  
port: 9200  
url\_prefix:  
use\_ssl: False  
certificate:  
client\_cert:  
client\_key:  
aws\_key:  
aws\_secret\_key:  
aws\_region:  
ssl\_no\_validate: False  
http\_auth:  
timeout: 30  
master\_only: False

logging:  
loglevel: INFO  
logfile:  
logformat: default  
blacklist: ['elasticsearch', 'urllib3']  
[root@elk01 curator]#

Extract of my close.yml file:

[root@elk01 curator]# cat close.yml  
actions:  
1:  
action: close  
description: \>-  
Close indices older than 2 days (based on index name), for logstash-  
prefixed indices.  
options:  
delete\_aliases: False  
timeout\_override:  
continue\_if\_exception: False  
disable\_action: False  
filters:  
- filtertype: pattern  
kind: prefix  
value: logstash-  
exclude:  
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 2  
exclude:  
[root@elk01 curator]#

Any ideas?

---

<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:** [August 4, 2016, 1:03am UTC](https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164/2 "2016-08-04T01:03:03Z")

</div>

Without more to go on, it would suggest:

1. You have no open `logstash-*` indices older than 2 days (they've already been closed)
2. You have no `logstash-*` indices older than 2 days.

Try running with `loglevel` set to `DEBUG`. You'll see what's going on under the hood.

---

<div class="post-metadata">

**Author:** ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)\
**Post date:** [August 4, 2016, 1:37am UTC](https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164/3 "2016-08-04T01:37:50Z")

</div>

Ahh thanks!  
I removed logstash- and changed it to topbeat- and that worked nicely.  
How/what value should I put there f I want to close topbeat, filebeat and a heap of other index's

Thanks.

---

<div class="post-metadata">

**Author:** ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)\
**Post date:** [August 4, 2016, 1:51am UTC](https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164/4 "2016-08-04T01:51:38Z")

</div>

All good!  
worked it out 🙂

Extract of my close.yml in particular 'kind' and value.

1:  
action: close  
description: \>-  
Close indices older than 10 days (based on index name), for logstash-  
prefixed indices.  
options:  
delete\_aliases: False  
timeout\_override:  
continue\_if\_exception: False  
disable\_action: False  
filters:  
- filtertype: pattern  
kind: timestring  
value: '%Y.%m.%d'  
exclude:  
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 10  
exclude:

Thanks for pointing it out Aaron.

---

<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:** [July 5, 2017, 10:30pm UTC](https://discuss.elastic.co/t/curator-4-x-error-unable-to-complete-action/57164/5 "2017-07-05T22:30:16Z")

</div>


