# Finding size of total documents in an index

**URL:** <https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776>\
**Category:** Elasticsearch\
**Created:** [December 6, 2020, 1:39pm UTC](https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776 "2020-12-06T13:39:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![usamaahmadkhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usamaahmadkhan/32/59344_2.png) [@usamaahmadkhan](https://discuss.elastic.co/u/usamaahmadkhan)\
**Post date:** [December 6, 2020, 1:39pm UTC](https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776/1 "2020-12-06T13:39:36Z")

</div>

Hi,  
I want to find the sum of the sizes of all the documents containing a specific field.  
e.g. for an index .index-dec-6-2020  
I want to get the sum of the size of all the documents containing the filed delay: 5

Can someone point me towards a similar example or documentation?  
Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 6, 2020, 2:51pm UTC](https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776/2 "2020-12-06T14:51:17Z")

</div>

You need to use that:

> **[Mapper Size Plugin | Elasticsearch Plugins and Integrations \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html)**

---

<div class="post-metadata">

**Author:** ![usamaahmadkhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usamaahmadkhan/32/59344_2.png) [@usamaahmadkhan](https://discuss.elastic.co/u/usamaahmadkhan)\
**Post date:** [December 6, 2020, 4:23pm UTC](https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776/3 "2020-12-06T16:23:06Z")

</div>

@dadoonet thanks for the reply. Actually I;m using elasticsearch in openshift environment (Logging Operator). Is there doc available for that? or any other way I can get the size?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 6, 2020, 9:29pm UTC](https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776/4 "2020-12-06T21:29:15Z")

</div>

I don't think there's unless you compute yourself the size and index that value in the document at index time.

---

<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:** [January 3, 2021, 9:29pm UTC](https://discuss.elastic.co/t/finding-size-of-total-documents-in-an-index/257776/5 "2021-01-03T21:29:20Z")

</div>

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