Created
September 29, 2016 05:37
-
-
Save danielef/3c22e4c43255697efd9ab408f2fdd64e to your computer and use it in GitHub Desktop.
Elasticsearch extended stats by field
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
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