# Kind of roll over index through index template?

**URL:** <https://discuss.elastic.co/t/kind-of-roll-over-index-through-index-template/200446>\
**Category:** Elasticsearch\
**Created:** [September 20, 2019, 2:40pm UTC](https://discuss.elastic.co/t/kind-of-roll-over-index-through-index-template/200446 "2019-09-20T14:40:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uzo/32/45305_2.png) [@Uzo](https://discuss.elastic.co/u/Uzo)\
**Post date:** [September 20, 2019, 2:40pm UTC](https://discuss.elastic.co/t/kind-of-roll-over-index-through-index-template/200446/1 "2019-09-20T14:40:14Z")

</div>

Hello. I want to have some time based indices but with the particularity that some data could be indexed into the past.

I don't see how to achieve this using roll over index.

Would index template be a good solution ?

I plan to do an index template with my mapping and then new indices will be auto generated when necessary. The process that do the indexation will add the date in the index name. Then i will do some multi indicies aggregation in order to fit my needs.

I hope you can tell me if you see any limitation to this solution.

---

<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:** [October 18, 2019, 2:40pm UTC](https://discuss.elastic.co/t/kind-of-roll-over-index-through-index-template/200446/2 "2019-10-18T14:40:21Z")

</div>

Closed on October 18, 2019, 2:40pm UTC

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