Elasticsearch document size

Hi,

I know there has been multiple threads on finding size of a document in Elasticsearch. I have not found a conclusive answer for ELK 6.x.

For my benchmarking purposes, I would like to know the average size of documents stored in an index in Elasticsearch. I am using ELK 6.3. Previously, the size parameter was available but i do not see it in the latest versions.

Is there a way to find the average (or exact) size of document in an index in Elasticsearch?

Thanks,
Raji

If you want exact then see https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html

If you are ok with an average then just get the byte size of the index and then divide that by the number of documents.

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