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


(Satish) #1

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/


(Mark Walkom) #2

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


(Satish) #3

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


(David Pilato) #4

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.


(Otis Gospodnetić) #5

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/


(David Pilato) #6

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:


(system) #7