# "\_shard\_stores" returns empty

**URL:** <https://discuss.elastic.co/t/shard-stores-returns-empty/263966>\
**Category:** Elasticsearch\
**Created:** [February 11, 2021, 8:46am UTC](https://discuss.elastic.co/t/shard-stores-returns-empty/263966 "2021-02-11T08:46:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [February 11, 2021, 8:46am UTC](https://discuss.elastic.co/t/shard-stores-returns-empty/263966/1 "2021-02-11T08:46:58Z")

</div>

Hey,

when I try to GET /\_shard\_stores i always get an empty response. I tried it with the elastic user or every other user.

My cluster is Green and i have some 1000 shards allocated. I wanted to know where a shard lives.

---

<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:** [February 11, 2021, 11:34am UTC](https://discuss.elastic.co/t/shard-stores-returns-empty/263966/2 "2021-02-11T11:34:39Z")

</div>

According to [the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shards-stores.html), the `?status` parameter defaults to `yellow,red`. If your cluster health is `green` then there are no yellow or red shards to display, so an empty response is correct.

---

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [February 12, 2021, 11:17am UTC](https://discuss.elastic.co/t/shard-stores-returns-empty/263966/3 "2021-02-12T11:17:03Z")

</div>

Oh sry I overlooked this detail...

But how can I see which of the nodes holds the shards of one index?

Thanks

---

<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:** [February 12, 2021, 12:25pm UTC](https://discuss.elastic.co/t/shard-stores-returns-empty/263966/4 "2021-02-12T12:25:36Z")

</div>

For human consumption, [cat shards](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html) is simplest; for machines, use [indices stats](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html):

```nohighlight
GET _cat/shards/<INDEX>

GET /<INDEX>/_stats/store?level=shards&filter_path=indices.*.shards.*.routing

```

---

<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:** [March 12, 2021, 12:26pm UTC](https://discuss.elastic.co/t/shard-stores-returns-empty/263966/5 "2021-03-12T12:26:27Z")

</div>

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