How to find the size of a field/record in elasticsearch index?

Hi,

As the subject says, I need to find out the message size of a particular record, or the average size of a particular field in an index stored in Elasticsearch. Is it possible? If yes, how do I go about it?

Cheers,
Satish/

We don't store this, you can figure the doc size out easily though.

Thanks for the reply @warkolm Do you mean the individual record size in an index? How do I get that?

Also coming in 2.0 https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/mapper-size.html

But it gives that for the _source field.

Nice. Would that include the size of the content of _source (i.e. raw data) or the whole JSON that's in _source?

Thanks,
Otis

Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Elasticsearch Consulting & Support * http://sematext.com/

I don't see what is the difference.

It will index the size of what you have in _source, so I assume "raw" data here?

@jpountz might tell more. :smile: