# Index Rollover for time based indexes

**URL:** <https://discuss.elastic.co/t/index-rollover-for-time-based-indexes/175345>\
**Category:** Elasticsearch\
**Created:** [April 4, 2019, 8:02am UTC](https://discuss.elastic.co/t/index-rollover-for-time-based-indexes/175345 "2019-04-04T08:02:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrobounce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astrobounce/32/30511_2.png) [@astrobounce](https://discuss.elastic.co/u/astrobounce)\
**Post date:** [April 4, 2019, 8:02am UTC](https://discuss.elastic.co/t/index-rollover-for-time-based-indexes/175345/1 "2019-04-04T08:02:46Z")

</div>

Hi Team .

I am not sure whether someone have done this or not but I am little stuck at situation .

Scenarion :

We are ingesting data to elasticsearch using logstash using time based strategy where we are creating index on daily basis .

At certain point in a day our shards reach to size of 30-40 GB ( Size in day is around 120 GB of each shard )

We want to rollover those indices .

Problem :

I am able to bring the strategy . If we rollover using aliases logstash will still be writing on the daily index ( lets say logstash-2019.04.04 ) .

If we write on alias name , daily based index creation strategy will be lost .

Can we . have some way where we rollover the current index and it moves with name logstash-1-2019.04.04  
and logstash can still create the index logstash-2019.04.04 and continue to write on same index .

Regards

---

<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:** [May 2, 2019, 8:09am UTC](https://discuss.elastic.co/t/index-rollover-for-time-based-indexes/175345/2 "2019-05-02T08:09:17Z")

</div>

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