Created
June 11, 2014 12:57
-
-
Save gauravarora/32b03a28d6af903923a0 to your computer and use it in GitHub Desktop.
aggregation bytes by ip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time curl -XPOST "http://localhost/es/logstash-2014.04.01-v2/_search?pretty" -d' | |
{ | |
"size": 0, | |
"aggregations": { | |
"the_name": { | |
"terms": { | |
"field": "clientip", | |
"order": { | |
"rating_avg": "desc" | |
} | |
}, | |
"aggregations": { | |
"rating_avg": { | |
"sum": { | |
"field": "bytes" | |
} | |
} | |
} | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment