# Curator: select indices by/without alias

**URL:** <https://discuss.elastic.co/t/curator-select-indices-by-without-alias/38313>\
**Category:** Elasticsearch\
**Created:** [January 4, 2016, 1:20pm UTC](https://discuss.elastic.co/t/curator-select-indices-by-without-alias/38313 "2016-01-04T13:20:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aros](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aros](https://discuss.elastic.co/u/aros)\
**Post date:** [January 4, 2016, 1:20pm UTC](https://discuss.elastic.co/t/curator-select-indices-by-without-alias/38313/1 "2016-01-04T13:20:08Z")

</div>

Hi,

I am wondering if there is a way to select indices by the given rules (e.g. older than 1 week) and also by the existence/absence of an alias. A use case for this could be an import process that writes daily indices and sets an alias afterward. I would like to remove indices where the import failed, meaning no alias was set or optimize only indices with an alias.

Thanks,  
Andrej

---

<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:** [January 5, 2016, 1:15am UTC](https://discuss.elastic.co/t/curator-select-indices-by-without-alias/38313/2 "2016-01-05T01:15:53Z")

</div>

There's not, you'd have to raise a FR or make a PR to get this added.

---

<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:27pm UTC](https://discuss.elastic.co/t/curator-select-indices-by-without-alias/38313/3 "2017-07-05T23:27:11Z")

</div>


