# Index Templates and Rollover

**URL:** <https://discuss.elastic.co/t/index-templates-and-rollover/198966>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 7:31pm UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966 "2019-09-10T19:31:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [September 10, 2019, 7:31pm UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966/1 "2019-09-10T19:31:46Z")

</div>

I am trying to understand how ILM and Templates work.

I have setup a ILM where if an index gets bigger than 50GB it should auto roll over. Lets say the policy is called "rollover1-policy"

I can attach this policy to an index and give it an alias. Also I can see that the policy can be attached to a template.

What I am ultimately trying to do is, have my application send all my data to a index say "peopleindex" (alias) and on the back end it creates a peopleindex-2019.09.10 and when that index gets big enough for the roll over it autorolls over to peopleindex-YYYY.MM.DD

However, when I send data to peopleindex, it doesnt seem to actually receive data and if I send to peopleindex-2019.09.10 it doesnt roll anything over. What is going wrong here?

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [September 14, 2019, 2:57pm UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966/2 "2019-09-14T14:57:20Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [September 16, 2019, 9:47pm UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966/3 "2019-09-16T21:47:51Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 17, 2019, 4:59am UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966/4 "2019-09-17T04:59:11Z")

</div>

It would help if you showed the exact steps you went through and what you configuration and templates look like.

---

<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 15, 2019, 4:59am UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966/5 "2019-10-15T04:59:17Z")

</div>

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