# Curator "no indices matched"

**URL:** https://discuss.elastic.co/t/curator-no-indices-matched/42881
**Category:** Elasticsearch
**Created:** [February 26, 2016, 5:51pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881 "2016-02-26T17:51:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![DigiAngel](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DigiAngel](https://discuss.elastic.co/u/DigiAngel)
#### Post date: [February 26, 2016, 5:51pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/1 "2016-02-26T17:51:04Z")

</div>

Topic says it...just installed curator and here's the output:

curator delete indices --older-than 90 --time-unit days --timestring '%Y.%m.%d'  
2016-02-26 10:45:17,494 INFO Job starting: delete indices  
2016-02-26 10:45:17,650 INFO Pruning Kibana-related indices to prevent accidental deletion.  
2016-02-26 10:45:17,651 WARNING No indices matched provided args: {'regex': None, 'index': (), 'suffix': None, 'newer\_than': None, 'closed\_only': False, 'prefix': None, 'time\_unit': 'days', 'timestring': u'%Y.%m.%d', 'exclude': (), 'older\_than': 90, 'all\_indices': False}  
No indices matched provided args: {'regex': None, 'index': (), 'suffix': None, 'newer\_than': None, 'closed\_only': False, 'prefix': None, 'time\_unit': 'days', 'timestring': u'%Y.%m.%d', 'exclude': (), 'older\_than': 90, 'all\_indices': False}

This is on elasticsearch 1.7.4. Thank you.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 26, 2016, 7:38pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/2 "2016-02-26T19:38:42Z")

</div>

I think you also need to supply a prefix as well don't you?

---

<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: [February 26, 2016, 7:51pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/3 "2016-02-26T19:51:49Z")

</div>

No prefix necessary, actually, @warkolm. This should show all indices with a matching timestring and are older than 90 days.

@DigiAngel, please run with the `--debug` flag immediately after `curator` and before `delete`. You should get output which shows all indices found in one of the log lines.

---

<div class="post-metadata">

### Author: ![DigiAngel](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DigiAngel](https://discuss.elastic.co/u/DigiAngel)
#### Post date: [February 26, 2016, 8:26pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/4 "2016-02-26T20:26:06Z")

</div>

How about this line:

2016-02-26 13:22:34,049 DEBUG curator.api.utils get\_indices:29 All indices: [u'logstash-2016.02.19', u'logstash-2016.02.18', u'logstash-2016.02.13', u'logstash-2016.02.12', u'logstash-2016.02.11', u'logstash-2016.02.10', u'logstash-2016.02.17', u'logstash-2016.02.16', u'logstash-2016.02.15', u'logstash-2016.02.14', u'kibana-int', u'logstash-2016.02.08', u'logstash-2016.02.09', u'logstash-2016.02.05', u'logstash-2016.02.06', u'logstash-2016.02.07', u'logstash-2016.02.22', u'logstash-2016.02.23', u'logstash-2016.02.20', u'logstash-2016.02.21', u'logstash-2016.02.26', u'logstash-2016.02.24', u'logstash-2016.02.25']

Maybe since none of these are older than 90 days?

---

<div class="post-metadata">

### Author: ![DigiAngel](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DigiAngel](https://discuss.elastic.co/u/DigiAngel)
#### Post date: [February 26, 2016, 8:27pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/5 "2016-02-26T20:27:31Z")

</div>

Yep..that's why:

curator delete indices --older-than 9 --time-unit days --timestring '%Y.%m.%d'  
2016-02-26 13:26:43,791 INFO Job starting: delete indices  
2016-02-26 13:26:43,803 INFO Pruning Kibana-related indices to prevent accidental deletion.  
2016-02-26 13:26:43,803 INFO Action delete will be performed on the following indices: [u'logstash-2016.02.17']  
2016-02-26 13:26:43,805 INFO Deleting indices as a batch operation:  
2016-02-26 13:26:43,805 INFO ---deleting index logstash-2016.02.17  
2016-02-26 13:26:44,223 INFO Job completed successfully.

Guess now I know...thanks all!

---

<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: [February 26, 2016, 8:37pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/6 "2016-02-26T20:37:49Z")

</div>

😃 Glad you figured it out!

---

<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, 11:13pm UTC](https://discuss.elastic.co/t/curator-no-indices-matched/42881/7 "2017-07-05T23:13:14Z")

</div>


