# Shrink Index - add 'shrink' as a suffix

**URL:** <https://discuss.elastic.co/t/shrink-index-add-shrink-as-a-suffix/182982>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 28, 2019, 5:00am UTC](https://discuss.elastic.co/t/shrink-index-add-shrink-as-a-suffix/182982 "2019-05-28T05:00:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [May 28, 2019, 3:04pm UTC](https://discuss.elastic.co/t/shrink-index-add-shrink-as-a-suffix/182982/2 "2019-05-28T15:04:37Z")

</div>

> [@NerdSec](#):
>
> Is it possible to specify the name of the new shrunk index in ILM? Otherwise. I will have to change my index patterns, visualizations and dashboards cause the new pattern would be `*my-index-*` , instead of the current pattern `my-index-*` .

No, it's not possible currently to change the name of the shrunken index.

As for querying it though, when ILM shrinks an index it _does_ create an alias for the index with the same name as the previous one, so `my-index-000001` becomes `shrink-my-index-000001` and an alias is created called `my-index-000001` pointing to the new shrink-prefixed index.

---

_[View the full topic](https://discuss.elastic.co/t/shrink-index-add-shrink-as-a-suffix/182982)._
