Skip to content

Instantly share code, notes, and snippets.

@dadoonet
Forked from trekr5/gist:db0b0f577cab10d95257
Created April 30, 2015 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dadoonet/0b161423d0acafecb012 to your computer and use it in GitHub Desktop.
Save dadoonet/0b161423d0acafecb012 to your computer and use it in GitHub Desktop.
GET /logstash-2015.04.30/_search
{
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"term": {
"type": "iis6"
}
},
{
"term": {
"status": 500
}
},
{
"range": {
"timestamp": {
"from": "now-2h",
"to": "now"
}
}
}
]
}
}
}
},
"aggs": {
"3": {
"date_histogram": {
"field": "@timestamp",
"interval": "1m"
}
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment