# Is it possible to get the size of a closed index without opening it?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-get-the-size-of-a-closed-index-without-opening-it/356716>\
**Category:** Elasticsearch\
**Created:** [April 3, 2024, 7:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-size-of-a-closed-index-without-opening-it/356716 "2024-04-03T19:48:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingo](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pingo](https://discuss.elastic.co/u/pingo)\
**Post date:** [April 3, 2024, 7:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-size-of-a-closed-index-without-opening-it/356716/1 "2024-04-03T19:48:01Z")

</div>

The \_cat/indices API only shows the store size of open indices. Is there anyway to get the store size of closed indices?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 3, 2024, 8:47pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-size-of-a-closed-index-without-opening-it/356716/2 "2024-04-03T20:47:42Z")

</div>

`GET _stats?forbid_closed_indices=false` should show this

---

<div class="post-metadata">

**Author:** ![pingo](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pingo](https://discuss.elastic.co/u/pingo)\
**Post date:** [April 4, 2024, 1:20pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-size-of-a-closed-index-without-opening-it/356716/3 "2024-04-04T13:20:50Z")

</div>

That's so awesome. Thanks @DavidTurner !

---

<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:** [May 2, 2024, 1:21pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-the-size-of-a-closed-index-without-opening-it/356716/4 "2024-05-02T13:21:25Z")

</div>

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