# Shards and documents information

**URL:** <https://discuss.elastic.co/t/shards-and-documents-information/1394>\
**Category:** Elasticsearch\
**Created:** [May 27, 2015, 2:29pm UTC](https://discuss.elastic.co/t/shards-and-documents-information/1394 "2015-05-27T14:29:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrasacer](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@terrasacer](https://discuss.elastic.co/u/terrasacer)\
**Post date:** [May 27, 2015, 2:29pm UTC](https://discuss.elastic.co/t/shards-and-documents-information/1394/1 "2015-05-27T14:29:08Z")

</div>

Hi everyone,

I want to know how many documents in a shard.

For example, I was created the index with the default configuration. How many document of number 0 shard?

Similarly, how do I know which shard document?

Thanks.

---

<div class="post-metadata">

**Author:** ![Joshua\_P](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Joshua\_P](https://discuss.elastic.co/u/Joshua_P)\
**Post date:** [May 27, 2015, 3:52pm UTC](https://discuss.elastic.co/t/shards-and-documents-information/1394/2 "2015-05-27T15:52:42Z")

</div>

`curl -XGET 'http://localhost:9200/index_name/_stats?level=shards'` will give you shard-level stats, including the number of documents per shard.

[Indices Stats](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html#indices-stats)

As a side note, the plugin [Kopf](https://github.com/lmenezes/elasticsearch-kopf) is excellent for viewing this sort of information. You should check it out.

---

<div class="post-metadata">

**Author:** ![terrasacer](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@terrasacer](https://discuss.elastic.co/u/terrasacer)\
**Post date:** [May 27, 2015, 9:47pm UTC](https://discuss.elastic.co/t/shards-and-documents-information/1394/3 "2015-05-27T21:47:49Z")

</div>

Thank you so much @Joshua_P

This information is very valuable to me.

---

<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, 12:11am UTC](https://discuss.elastic.co/t/shards-and-documents-information/1394/4 "2017-07-06T00:11:29Z")

</div>


