# /\_stats endpoint not showing closed indices?

**URL:** <https://discuss.elastic.co/t/-stats-endpoint-not-showing-closed-indices/12083>\
**Category:** Elasticsearch\
**Created:** [May 22, 2013, 9:35pm UTC](https://discuss.elastic.co/t/-stats-endpoint-not-showing-closed-indices/12083 "2013-05-22T21:35:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Russo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_russo/32/44835_2.png) [@Roy\_Russo](https://discuss.elastic.co/u/Roy_Russo)\
**Post date:** [May 22, 2013, 9:35pm UTC](https://discuss.elastic.co/t/-stats-endpoint-not-showing-closed-indices/12083/1 "2013-05-22T21:35:52Z")

</div>

Hello all,

Just need confirmation in that when an index is marked as 'closed', it does  
not seem to appear in either "/\_status" or "/\_stats" API responses?

The only mention of closed indices is found under "/\_cluster/state" as

blocks:  
{

- indices:  
{

Is it by design that they should not appear on either indices listing?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [May 22, 2013, 10:18pm UTC](https://discuss.elastic.co/t/-stats-endpoint-not-showing-closed-indices/12083/2 "2013-05-22T22:18:46Z")

</div>

Roy Russo wrote:

> Just need confirmation in that when an index is marked as  
> 'closed', it does not seem to appear in either "/\_status" or  
> "/\_stats" API responses?

[...]

> Is it by design that they should not appear on either indices  
> listing?

Yes. A closed index is invisible to ES. It doesn't maintain any  
stats or otherwise look at it until you open it again.

Drew

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Roy\_Russo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_russo/32/44835_2.png) [@Roy\_Russo](https://discuss.elastic.co/u/Roy_Russo)\
**Post date:** [May 23, 2013, 12:08am UTC](https://discuss.elastic.co/t/-stats-endpoint-not-showing-closed-indices/12083/3 "2013-05-23T00:08:27Z")

</div>

Thanks!

As a note, perhaps the guide should be updated to reflect this... that the  
index listing excludes closed indices.

On Wednesday, May 22, 2013 6:18:46 PM UTC-4, Drew Raines wrote:

> Roy Russo wrote:
> 
> > Just need confirmation in that when an index is marked as  
> > 'closed', it does not seem to appear in either "/\_status" or  
> > "/\_stats" API responses?
> 
> [...]
> 
> > Is it by design that they should not appear on either indices  
> > listing?
> 
> Yes. A closed index is invisible to ES. It doesn't maintain any  
> stats or otherwise look at it until you open it again.
> 
> Drew

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:35am UTC](https://discuss.elastic.co/t/-stats-endpoint-not-showing-closed-indices/12083/4 "2017-07-06T02:35:19Z")

</div>


