Finding size of total documents in an index

Hi,
I want to find the sum of the sizes of all the documents containing a specific field.
e.g. for an index .index-dec-6-2020
I want to get the sum of the size of all the documents containing the filed delay: 5

Can someone point me towards a similar example or documentation?
Thanks

You need to use that:

@dadoonet thanks for the reply. Actually I;m using elasticsearch in openshift environment (Logging Operator). Is there doc available for that? or any other way I can get the size?

I don't think there's unless you compute yourself the size and index that value in the document at index time.

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