# How to know refresh interval of ES indexes?

**URL:** <https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282>\
**Category:** Elasticsearch\
**Created:** [May 19, 2025, 9:04am UTC](https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282 "2025-05-19T09:04:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philyeanaeknss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philyeanaeknss/32/141241_2.png) [@philyeanaeknss](https://discuss.elastic.co/u/philyeanaeknss)\
**Post date:** [May 19, 2025, 9:04am UTC](https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282/1 "2025-05-19T09:04:59Z")

</div>

I get ES indexes via  
`/_cat/indices`  
endpoint.

This tells me a number of documents for each index.

I want to monitor such number and analyze it dynamic during three time intervals (minute/hour/day).

But according indexes naming (`index_name_<date>`) I guess its refresh interval is 24 hours.

Is that true?  
If no - where's refresh interval information located?

---

<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 19, 2025, 9:13am UTC](https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282/2 "2025-05-19T09:13:38Z")

</div>

Look at the [index settings](https://www.elastic.co/guide/en/elasticsearch/reference/8.18/indices-get-settings.html). The refresh interval is by default 1 second if nothing has been specified to override this.

---

<div class="post-metadata">

**Author:** ![philyeanaeknss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philyeanaeknss/32/141241_2.png) [@philyeanaeknss](https://discuss.elastic.co/u/philyeanaeknss)\
**Post date:** [May 19, 2025, 9:22am UTC](https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282/3 "2025-05-19T09:22:13Z")

</div>

Is not such settings stored at the configuration file(s)?  
I have many indices and it'd be more convenient to explore it avoiding API requests.

---

<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 19, 2025, 9:33am UTC](https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282/4 "2025-05-19T09:33:30Z")

</div>

If you have not specified it in any index templates or explicitly set it on index creation it should be the default. To veryfy this you will need to use the API.

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [May 19, 2025, 10:20am UTC](https://discuss.elastic.co/t/how-to-know-refresh-interval-of-es-indexes/378282/5 "2025-05-19T10:20:25Z")

</div>

Hello,

Maybe below API can be useful as per your requirement :

`GET /*/_settings?include_defaults=true&flat_settings=true&filter_path=*.defaults.*refresh_interval`

Thanks!!
