# Stats on disk space used by each field in an index?

**URL:** <https://discuss.elastic.co/t/stats-on-disk-space-used-by-each-field-in-an-index/135055>\
**Category:** Elasticsearch\
**Created:** [June 7, 2018, 9:28pm UTC](https://discuss.elastic.co/t/stats-on-disk-space-used-by-each-field-in-an-index/135055 "2018-06-07T21:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rezecib](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@rezecib](https://discuss.elastic.co/u/rezecib)\
**Post date:** [June 7, 2018, 9:28pm UTC](https://discuss.elastic.co/t/stats-on-disk-space-used-by-each-field-in-an-index/135055/1 "2018-06-07T21:28:25Z")

</div>

I would like to know the impact of various fields in my index on the overall storage required, to better direct efforts to optimize my index mapping. My understanding is that each field has its own set of inverted indices, so the storage used by each is distinct, but I don't see any way to retrieve that from the \_stats API or other APIs.

I guess it would be possible to get this by making a set of indices with mappings each containing only one of the fields, and then look at the store stats for those, but the index I'm working with is pretty large and we don't store \_source, so reindexing to separate indexes for each field is costly.

Is there any better way to get these stats?

---

<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 5, 2018, 9:28pm UTC](https://discuss.elastic.co/t/stats-on-disk-space-used-by-each-field-in-an-index/135055/2 "2018-07-05T21:28:31Z")

</div>

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