# Possible to change index rollover time?

**URL:** <https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247>\
**Category:** Elasticsearch\
**Created:** [June 8, 2016, 7:12pm UTC](https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247 "2016-06-08T19:12:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffkirk1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeffkirk1/32/8080_2.png) [@jeffkirk1](https://discuss.elastic.co/u/jeffkirk1)\
**Post date:** [June 8, 2016, 7:12pm UTC](https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247/1 "2016-06-08T19:12:34Z")

</div>

Hi folks,

We've seen a big increase in our log volume and need to be able to reduce the maximum shard size to a manageable level.

I'm wondering if there's any way to automatically spawn a new logstash index when it reaches a certain maximum size, or if there's a way I can define the rollover time so it happens N times a day, where N is some number I may need to tweak.

Any help would be appreciated.

Best,

Jeff Kirk

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [June 8, 2016, 7:37pm UTC](https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247/2 "2016-06-08T19:37:56Z")

</div>

I think you are asking for this:

> <https://github.com/elastic/elasticsearch/pull/18732>

Well, kind of that. That is just and API and you'd cron it yourself.

---

<div class="post-metadata">

**Author:** ![jeffkirk1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeffkirk1/32/8080_2.png) [@jeffkirk1](https://discuss.elastic.co/u/jeffkirk1)\
**Post date:** [June 8, 2016, 7:47pm UTC](https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247/3 "2016-06-08T19:47:24Z")

</div>

Cool! I guess we'll have to wait on that then. Appreciate the feedback.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 13, 2016, 7:50pm UTC](https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247/4 "2016-06-13T19:50:15Z")

</div>

Can't you accomplish the same thing by increasing the number of shards?

---

<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:** [July 5, 2017, 10:44pm UTC](https://discuss.elastic.co/t/possible-to-change-index-rollover-time/52247/5 "2017-07-05T22:44:14Z")

</div>


