# Document/field sizing

**URL:** https://discuss.elastic.co/t/document-field-sizing/20978
**Category:** Elasticsearch
**Created:** [November 28, 2014, 11:11am UTC](https://discuss.elastic.co/t/document-field-sizing/20978 "2014-11-28T11:11:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Derry\_O\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Derry\_O\_Sullivan](https://discuss.elastic.co/u/Derry_O_Sullivan)
#### Post date: [November 28, 2014, 11:11am UTC](https://discuss.elastic.co/t/document-field-sizing/20978/1 "2014-11-28T11:11:13Z")

</div>

Hi all,

Is there a way to get document/field size statistics for a particular index?

I currently use the indices stats API to get some information but it only  
gives me #documents and store size which is an average.

e.g.:

curl -XGET '[http://localhost:9291/\_cat/indices/log\*?bytes=b](http://localhost:9291/_cat/indices/log*?bytes=b)' -s | sort |  
awk '{print $2, $8/$5}'

logstash-2014.11.01 298.375 #index, average doc size  
On a related note, what is the default 'compression' within ES 1.3.2 (fyi,  
i'm using logstash's default template here).

Many thanks,

Derry

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/39ee2b50-883c-4682-a676-5b2e9024acd8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/39ee2b50-883c-4682-a676-5b2e9024acd8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:47am UTC](https://discuss.elastic.co/t/document-field-sizing/20978/2 "2017-07-06T00:47:10Z")

</div>


