Skip to content

Instantly share code, notes, and snippets.

@adngdb
Created October 5, 2015 14:14
Show Gist options
  • Save adngdb/24e847266f1d6930759f to your computer and use it in GitHub Desktop.
Save adngdb/24e847266f1d6930759f to your computer and use it in GitHub Desktop.
{
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"range": {
"processed_crash.date_processed": {
"gte": "2015-09-28T13:02:07+00:00"
}
}
},
{
"range": {
"processed_crash.date_processed": {
"lte": "2015-10-05T13:02:07+00:00"
}
}
},
{
"term": {
"processed_crash.product": "firefox"
}
},
{
"query": {
"wildcard": {
"processed_crash.signature.full": "*mozilla*"
}
}
}
]
}
},
"query": {
"match_all": {
}
}
}
},
"from": 0,
"aggs": {
"proto_signature": {
"terms": {
"field": "processed_crash.proto_signature.full",
"size": 50
}
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment