Skip to content

Instantly share code, notes, and snippets.

@danielef
Created September 29, 2016 05:37
Show Gist options
  • Save danielef/3c22e4c43255697efd9ab408f2fdd64e to your computer and use it in GitHub Desktop.
Save danielef/3c22e4c43255697efd9ab408f2fdd64e to your computer and use it in GitHub Desktop.
Elasticsearch extended stats by field
curl -XGET 'http://localhost:9200/logstash-2016.09.28/_search?pretty=true' -d ' {
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{"term": {"service.raw": "jmx.Memory.HeapMemoryUsage.used"}}
]
}
}
}
},
"aggs" : { "grades_stats" : { "extended_stats" : { "field" : "metric" } } }
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment