# Monthly indices for rollover using data stream

**URL:** <https://discuss.elastic.co/t/monthly-indices-for-rollover-using-data-stream/276527>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 21, 2021, 10:59am UTC](https://discuss.elastic.co/t/monthly-indices-for-rollover-using-data-stream/276527 "2021-06-21T10:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryce\_Fernandes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bryce_fernandes/32/71166_2.png) [@Bryce\_Fernandes](https://discuss.elastic.co/u/Bryce_Fernandes)\
**Post date:** [June 21, 2021, 10:59am UTC](https://discuss.elastic.co/t/monthly-indices-for-rollover-using-data-stream/276527/1 "2021-06-21T10:59:33Z")

</div>

Hi,

Using the blog below I was able to get indices as mentioned in last step.

[https://www.elastic.co/blog/how-to-manage-elasticsearch-data-multiple-indices-filebeat-ilm-data-streams](https://www.elastic.co/blog/how-to-manage-elasticsearch-data-multiple-indices-filebeat-ilm-data-streams)

I am able to get indices as well as rollover is working. But the pattern which is generated is

```auto
.ds-filebeat-apache-2021-06-21-000001
.ds-filebeat-apache-2021-06-21-000002
.ds-filebeat-apache-2021-06-22-000003

```

My use case is such that per day indexing size is less and retention period is more. So to prevent oversharding I want to manage indices month wise. i.e.

```auto
.ds-filebeat-apache-2021-06-000001
.ds-filebeat-apache-2021-07-000002

```

Thanks,  
Bryce Fernandes

---

<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 19, 2021, 1:00pm UTC](https://discuss.elastic.co/t/monthly-indices-for-rollover-using-data-stream/276527/2 "2021-07-19T13:00:08Z")

</div>

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