# Mapper Size Plugin VS real Index Size

**URL:** <https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793>\
**Category:** Elasticsearch\
**Created:** [November 22, 2021, 10:08am UTC](https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793 "2021-11-22T10:08:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gneves](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gneves](https://discuss.elastic.co/u/gneves)\
**Post date:** [November 22, 2021, 10:08am UTC](https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793/1 "2021-11-22T10:08:49Z")

</div>

Hello guys, hope you are doing well.

Im having a little problem, or not understanding something.

My problem is:

- In order to make a metrics dashboard about index sizes and other metrics, i have enabled Mapper Size Plugin.

- With just a normal Aggregation dashbaord, i have made a Sum of the "size field" (Scripted Field, in bytes) and lets say my index do have "26GB" of total size.

- But, when i go to stack monitoring \> indices \> i see that this index only have "5.4GB" On disk.

Am i doing something wrong, or there is a basic explanation for that?

Thank you for your help!!

---

<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:** [November 23, 2021, 12:28am UTC](https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793/2 "2021-11-23T00:28:01Z")

</div>

> [@gneves](#):
>
> Hello guys

We aren't all guys 🙂

> [@gneves](#):
>
> With just a normal Aggregation dashbaord, i have made a Sum of the "size field" (Scripted Field, in bytes) and lets say my index do have "26GB" of total size.

At a guess are you sure that's not supposed to be 2.6GB? That'd be about 50% of what your index size is, which would account for the primary shard size.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 23, 2021, 1:55am UTC](https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793/3 "2021-11-23T01:55:22Z")

</div>

Just driving by...BTW there by is a simple API to get this data

> **[Index stats API | Elasticsearch Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html)**

---

<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:** [November 23, 2021, 3:17am UTC](https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793/4 "2021-11-23T03:17:12Z")

</div>

The mapper size plugin indexes the size of the indexed JSON documents. These are then compressed and fields are indexed before being stored on disk. These operations will result in a different size index.

---

<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:** [December 21, 2021, 3:17am UTC](https://discuss.elastic.co/t/mapper-size-plugin-vs-real-index-size/289793/5 "2021-12-21T03:17:36Z")

</div>

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