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

(Satish) #1


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?


(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

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?


Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Elasticsearch Consulting & Support *

(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