# Data stream, ILM and refresh\_interval

**URL:** <https://discuss.elastic.co/t/data-stream-ilm-and-refresh-interval/304456>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 11, 2022, 11:05am UTC](https://discuss.elastic.co/t/data-stream-ilm-and-refresh-interval/304456 "2022-05-11T11:05:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin\_Pletzer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valentin_pletzer/32/105548_2.png) [@Valentin\_Pletzer](https://discuss.elastic.co/u/Valentin_Pletzer)\
**Post date:** [May 11, 2022, 11:05am UTC](https://discuss.elastic.co/t/data-stream-ilm-and-refresh-interval/304456/1 "2022-05-11T11:05:45Z")

</div>

Hi,

I am using Elasticsearch for a really long time now, mostly for logging data and aggregating. One pattern I am using successfully is the rolling daily indices. Write to the current one and set the older ones to "refresh\_interval": "-1" in order to reduce load. (not sure how much of an impact this really has but this is "battle-proven".

I am now looking into data streams and ILM which seem to have professionalised the workflows for my use case by a lot. And a, to me, obvious thing to do is to set older indices to "read only" which can be done via the policy.

What I am wondering though: Does "read only" imply a refresh\_interval of -1 or what would be the best way to achieve this.

Thanks in advance  
Valentin

---

<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 11, 2022, 11:22pm UTC](https://discuss.elastic.co/t/data-stream-ilm-and-refresh-interval/304456/2 "2022-05-11T23:22:08Z")

</div>

> [@Valentin\_Pletzer](#):
>
> Write to the current one and set the older ones to "refresh\_interval": "-1" in order to reduce load. (not sure how much of an impact this really has but this is "battle-proven".

Not much of an impact these days. In older versions it would have helped.

> [@Valentin\_Pletzer](#):
>
> What I am wondering though: Does "read only" imply a refresh\_interval of -1 or what would be the best way to achieve this.

[Read only | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/ilm-readonly.html) doesn't really state, but an educated guess would suggest it's something like [Index blocks | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/index-modules-blocks.html)

---

<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 8, 2022, 11:22pm UTC](https://discuss.elastic.co/t/data-stream-ilm-and-refresh-interval/304456/3 "2022-06-08T23:22:31Z")

</div>

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