Skip to content

Instantly share code, notes, and snippets.

@golonzovsky
Last active February 22, 2018 15:44
Show Gist options
  • Save golonzovsky/94556b2cc829d67801331380b0ffb2c5 to your computer and use it in GitHub Desktop.
Save golonzovsky/94556b2cc829d67801331380b0ffb2c5 to your computer and use it in GitHub Desktop.
{
"aggregations": {
"traceIDs": {
"aggregations": {
"startTime": {
"max": {
"field": "startTime"
}
}
},
"terms": {
"field": "traceID",
"order": [
{
"startTime": "desc"
}
],
"size": 500
}
}
},
"query": {
"bool": {
"must": [
{
"range": {
"duration": {
"from": 100000,
"include_lower": true,
"include_upper": true,
"to": 2000000
}
}
},
{
"range": {
"startTime": {
"from": 1519310503019000,
"include_lower": true,
"include_upper": true,
"to": 1519314103019000
}
}
},
{
"match": {
"process.serviceName": {
"query": "storage"
}
}
}
]
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment