# Index Template - renaming the index

**URL:** <https://discuss.elastic.co/t/index-template-renaming-the-index/29132>\
**Category:** Elasticsearch\
**Created:** [September 11, 2015, 12:11pm UTC](https://discuss.elastic.co/t/index-template-renaming-the-index/29132 "2015-09-11T12:11:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oranciog](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@oranciog](https://discuss.elastic.co/u/oranciog)\
**Post date:** [September 11, 2015, 12:11pm UTC](https://discuss.elastic.co/t/index-template-renaming-the-index/29132/1 "2015-09-11T12:11:25Z")

</div>

Hello,

Is there any way to auto-rename the index, when someone creates the index?

For example, when I want to create the index " **test**", in ES should be created the index " **test-timestamp**", with alias " **test**".

I saw that the aliases can be set when a index is created, by setting this option in the template file. [1], but there is no option to rename the index.

Thank you,  
[1][https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html)

---

<div class="post-metadata">

**Author:** ![oranciog](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@oranciog](https://discuss.elastic.co/u/oranciog)\
**Post date:** [September 14, 2015, 9:35am UTC](https://discuss.elastic.co/t/index-template-renaming-the-index/29132/2 "2015-09-14T09:35:02Z")

</div>

Bump, Anyone?

Thank you

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 14, 2015, 10:46am UTC](https://discuss.elastic.co/t/index-template-renaming-the-index/29132/3 "2015-09-14T10:46:02Z")

</div>

I don't think you can.

---

<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:50pm UTC](https://discuss.elastic.co/t/index-template-renaming-the-index/29132/4 "2017-07-05T23:50:29Z")

</div>


