# Rolling indices on daily basis

**URL:** <https://discuss.elastic.co/t/rolling-indices-on-daily-basis/179994>\
**Category:** Elasticsearch\
**Created:** [May 7, 2019, 1:49pm UTC](https://discuss.elastic.co/t/rolling-indices-on-daily-basis/179994 "2019-05-07T13:49:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abrasat](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@abrasat](https://discuss.elastic.co/u/abrasat)\
**Post date:** [May 7, 2019, 1:49pm UTC](https://discuss.elastic.co/t/rolling-indices-on-daily-basis/179994/1 "2019-05-07T13:49:19Z")

</div>

We are thinking about storing the events generated from our system for the last 2 weeks into elasticsearch. How exactly shoud be configured elesticsearch to get such a functionality, to "automatically" create a new index each day, and to remove indices older than 2 weeks? Would be even possible to archive the old indices for 2 more weeks and remove them after 30 days? Or should be better that the application sending the events to elasticsearch handles programmatically such a functionality?  
I am using docker-compose to launch the elastic search nodes and kibana.

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [May 7, 2019, 3:54pm UTC](https://discuss.elastic.co/t/rolling-indices-on-daily-basis/179994/2 "2019-05-07T15:54:25Z")

</div>

Check out the new index life-cycle management (ILM) feature: [https://www.elastic.co/blog/implementing-hot-warm-cold-in-elasticsearch-with-index-lifecycle-management](https://www.elastic.co/blog/implementing-hot-warm-cold-in-elasticsearch-with-index-lifecycle-management)

---

<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:** [June 4, 2019, 3:54pm UTC](https://discuss.elastic.co/t/rolling-indices-on-daily-basis/179994/3 "2019-06-04T15:54:33Z")

</div>

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