# Templates with timestamp aliases

**URL:** <https://discuss.elastic.co/t/templates-with-timestamp-aliases/68743>\
**Category:** Elasticsearch\
**Created:** [December 12, 2016, 5:33pm UTC](https://discuss.elastic.co/t/templates-with-timestamp-aliases/68743 "2016-12-12T17:33:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)\
**Post date:** [December 12, 2016, 5:33pm UTC](https://discuss.elastic.co/t/templates-with-timestamp-aliases/68743/1 "2016-12-12T17:33:03Z")

</div>

We have an existing ES system, and I would like to add a template that will give us timestamp based aliases upon index creation.

So, for example, I see from [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html) that I can use an index macro for the index name in an alias, a la

```
{
   "template" : "cisco*",
   "aliases" : {
       "{index}-alias" : {}
   }
}

```

which would supply an alias with "cisco-alias".

What I want to see is an "cisco-2016-12-12" alias, that gets generated upon creation.

Is there a way to do this? So an equivalent to something like  
"aliases" : {  
"{index}-{YYYY-MMM-dd}" : {}  
}

Thank you.

---

<div class="post-metadata">

**Author:** ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)\
**Post date:** [December 12, 2016, 5:47pm UTC](https://discuss.elastic.co/t/templates-with-timestamp-aliases/68743/2 "2016-12-12T17:47:46Z")

</div>

Now that I've done some digging, I'm thinking this is a request that has not yet to be implemented (or at least fully pushed) as of yet.

Looks like this goes hand in hand with [this guy](https://github.com/elastic/elasticsearch/issues/5359)

---

<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:** [January 9, 2017, 5:48pm UTC](https://discuss.elastic.co/t/templates-with-timestamp-aliases/68743/3 "2017-01-09T17:48:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
