Difficulty trying to find a way to use facets

Hi all,

First of all, I posted via email but somehow I can't see it in
groups.google.com so posting via web-ui.

I'm using ES to store maillogs. In that, I'm trying to use ES to generate
statistics for ex, per domain bandwidth usage etc.

For ex, if I have a document which has fields like:

Now, there can be many email addresses like abc@domain.com. I just want the
summation of size for a particular domain. How do I accomplish that?

I had a look at statistical facet and scripts but I'm not sure how will I
use it to do per domain summation of @fields.size field. Ultimately, I want
something like: domain.com did x size of mails.

Any help is highly appreciated. Thanks

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.