Skip to content

Instantly share code, notes, and snippets.

@philk
Created August 6, 2014 02:46
Show Gist options
  • Save philk/f0aa82f8bcf8399a3329 to your computer and use it in GitHub Desktop.
Save philk/f0aa82f8bcf8399a3329 to your computer and use it in GitHub Desktop.
{
"facets": {
"0": {
"query": {
"filtered": {
"query": {
"query_string": {
"query": "\"server is active\" AND audit_log_event_source:true"
}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"from": 1406530800000,
"to": 1407135600000
}
}
},
{
"fquery": {
"query": {
"query_string": {
"query": "tags:(otter)"
}
},
"_cache": true
}
}
],
"must_not": [
{
"fquery": {
"query": {
"query_string": {
"query": "host:(\"api0.preprod.ord.as.rax.io\")"
}
},
"_cache": true
}
}
]
}
}
}
}
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment