-
-
Save dadoonet/0b161423d0acafecb012 to your computer and use it in GitHub Desktop.
Revisions
-
dadoonet revised this gist
Apr 30, 2015 . 1 changed file with 32 additions and 32 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,40 +1,40 @@ 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 } -
trekr5 created this gist
Apr 30, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ curl -XGET 'localhost:9200/logstash-2015.04.30/_search?pretty' -d '{ "facets": { "3": { "date_histogram": { "field": "@timestamp", "interval": "1m" }, "global": true, "facet_filter": { "fquery": { "query": { "filtered": { "query": { "query_string": { "query": "type:iis6 AND status:500" } }, "filter": { "bool": { "must": [ { "range": { "timestamp": { "from": now-2h, "to": now } } } ] } } } } } } } }, "size": 0 } '