# How to check size on an index by field

**URL:** <https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821>\
**Category:** Elasticsearch\
**Created:** [January 17, 2018, 4:25am UTC](https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821 "2018-01-17T04:25:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [January 17, 2018, 4:25am UTC](https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821/1 "2018-01-17T04:25:04Z")

</div>

hi everyone!

is there anyway to check the size in bytes on an index by field?

let me say my scenario first.

pull down from cloudwatch log \> extract some logs @ lostash \> shipping specific log events only to ES  
and create some fields **(api\_code : app1, app2, app3)**

in kibana dev console, i can check daily indices size by using `GET _cat/indices?v`  
but i would like to check size in bytes by field **(eg: size of api\_code app1, size of api\_code app2)**

is that possible?

thank you someone point out to me.

---

<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:** [January 17, 2018, 4:34am UTC](https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821/2 "2018-01-17T04:34:02Z")

</div>

That is not possible sorry.

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [January 17, 2018, 4:37am UTC](https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821/3 "2018-01-17T04:37:07Z")

</div>

That info is not readily available from any API that I know of.  
However, using the [Term Vectors API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html), you might be able to infer some size using a combination of the size of the term and the term frequency, but you need to create some client side logic to compute all that.

---

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [January 17, 2018, 6:19am UTC](https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821/4 "2018-01-17T06:19:16Z")

</div>

i see. thank you.

---

<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:** [February 14, 2018, 6:19am UTC](https://discuss.elastic.co/t/how-to-check-size-on-an-index-by-field/115821/5 "2018-02-14T06:19:36Z")

</div>

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