# Can I set a rollover alias in an index pattern?

**URL:** <https://discuss.elastic.co/t/can-i-set-a-rollover-alias-in-an-index-pattern/222118>\
**Category:** Elasticsearch\
**Created:** [March 4, 2020, 4:32pm UTC](https://discuss.elastic.co/t/can-i-set-a-rollover-alias-in-an-index-pattern/222118 "2020-03-04T16:32:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jezal\_dan\_Luthar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jezal_dan_luthar/32/63538_2.png) [@Jezal\_dan\_Luthar](https://discuss.elastic.co/u/Jezal_dan_Luthar)\
**Post date:** [March 4, 2020, 4:32pm UTC](https://discuss.elastic.co/t/can-i-set-a-rollover-alias-in-an-index-pattern/222118/1 "2020-03-04T16:32:16Z")

</div>

Can I set a rollover alias in an index pattern, or do i need to create a template and reference the pattern in there?

I have new indexes generated every month with a timestamp.  
How do i include the timestamp of my indexes as part of the alias?

---

<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:** [April 1, 2020, 4:32pm UTC](https://discuss.elastic.co/t/can-i-set-a-rollover-alias-in-an-index-pattern/222118/2 "2020-04-01T16:32:19Z")

</div>

Closed on April 1, 2020, 4:32pm UTC

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