# Combine daily indices into monthly with ILM

**URL:** <https://discuss.elastic.co/t/combine-daily-indices-into-monthly-with-ilm/273185>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 17, 2021, 2:15pm UTC](https://discuss.elastic.co/t/combine-daily-indices-into-monthly-with-ilm/273185 "2021-05-17T14:15:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkatsikaros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vkatsikaros/32/110600_2.png) [@vkatsikaros](https://discuss.elastic.co/u/vkatsikaros)\
**Post date:** [May 17, 2021, 2:15pm UTC](https://discuss.elastic.co/t/combine-daily-indices-into-monthly-with-ilm/273185/1 "2021-05-17T14:15:11Z")

</div>

Hi

I would like to combine daily indices into monthly. I'd like to ask if this can be performed with Index Lifecycle Management in 7.12. There are `reindex` related questions, but should be old to include an ILM solution:

- [Daily indices into monthly - post from 2017](https://discuss.elastic.co/t/daily-indices-into-monthly/99777)
- [Reindex daily indices to weekly indices - post from 2019](https://discuss.elastic.co/t/reindex-daily-indices-to-weekly-indices/193780)

From what I read, I understand that reindexing daily indices to monthly ones, is **not** possible with ILM? In the 7.12 docs [Size your shards](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/size-your-shards.html#combine-smaller-indices), ILM is mentioned for some cases but not for the "Combine smaller indices" case. Also, in the 7.12 docs [Index lifecycle actions](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-actions.html) I believe I don't see a relevant action.

If it's not possible in 7.12, I'd then like to ask it it's implemented in 7.13 (not released yet)?

Regards  
Vangelis

---

<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:** [May 17, 2021, 4:40pm UTC](https://discuss.elastic.co/t/combine-daily-indices-into-monthly-with-ilm/273185/2 "2021-05-17T16:40:50Z")

</div>

> [@vkatsikaros](#):
>
> From what I read, I understand that reindexing daily indices to monthly ones, is **not** possible with ILM?

Correct. It is generally better to make sure you reach the ideal shard size when you initially as reindexing is resource intensive. If you use rollover with ILM you can trigger rollover based on size and get very even sized shards optimal for performance and long retention.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 17, 2021, 10:58pm UTC](https://discuss.elastic.co/t/combine-daily-indices-into-monthly-with-ilm/273185/3 "2021-05-17T22:58:22Z")

</div>

ILM is about putting caps on indices and rolling them when you hit those.

If you have existing daily indices, you want to use reindex to merge them into monthly.

---

<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 14, 2021, 10:58pm UTC](https://discuss.elastic.co/t/combine-daily-indices-into-monthly-with-ilm/273185/4 "2021-06-14T22:58:48Z")

</div>

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