# How to get average document size in an index?

**URL:** <https://discuss.elastic.co/t/how-to-get-average-document-size-in-an-index/225610>\
**Category:** Elasticsearch\
**Created:** [March 30, 2020, 5:06am UTC](https://discuss.elastic.co/t/how-to-get-average-document-size-in-an-index/225610 "2020-03-30T05:06:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [March 30, 2020, 5:06am UTC](https://discuss.elastic.co/t/how-to-get-average-document-size-in-an-index/225610/1 "2020-03-30T05:06:00Z")

</div>

HI,

I am using Elastic Stack v6.3.0. I have multiple indices. Is is possible to get average document size (the size of a single entry in an index) of a particular index?

Thank you

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 30, 2020, 5:13am UTC](https://discuss.elastic.co/t/how-to-get-average-document-size-in-an-index/225610/2 "2020-03-30T05:13:39Z")

</div>

Total size of the index divided by document count, the `_cat/index` API will give you both those 🙂

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 30, 2020, 6:07am UTC](https://discuss.elastic.co/t/how-to-get-average-document-size-in-an-index/225610/4 "2020-03-30T06:07:29Z")

</div>

If you are looking for the size or the source JSON documents you may need to install the [mapper size plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/7.6/mapper-size.html) so you can get this through aggregations.

---

<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:** [April 27, 2020, 6:07am UTC](https://discuss.elastic.co/t/how-to-get-average-document-size-in-an-index/225610/5 "2020-04-27T06:07:40Z")

</div>

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