Is there a way I can use "avg" aggregation to return just the "average 
documents" in an hour/min/date-range?

What I am trying to do is this - 

I have fed the Nginx server logs to elasticsearch, now I want to know whats 
the average number of responses that returned 50x, 40x and 20x per hour for 
last 5 hours. 
Possible to do?

I could get the "for last 5 hours" part with date_histogram, also, 50x, 40x 
and 20x part was easy using aggregation buckets. But couldn't find how to 
get avg of "doc_count" :(

Any help would be appreciated. 

Regards, 
Shrinath M

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9f0d44b0-e4da-42f4-b446-d7d5a6018907%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to