Skip to content

Instantly share code, notes, and snippets.

@rfay
Created July 23, 2013 22:22
Show Gist options
  • Save rfay/6066691 to your computer and use it in GitHub Desktop.
Save rfay/6066691 to your computer and use it in GitHub Desktop.
curl -XGET http://util.archetypeme.com:9200/logstash-2013.07.23/_search?pretty -d'
{
"facets": {
"0": {
"date_histogram": {
"field": "@timestamp",
"interval": "30s"
},
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"query": {
"query_string": {
"query": "*"
}
},
"filter": {
"bool": {
"must": [
{
"match_all": {}
},
{
"range": {
"@timestamp": {
"from": "2013-07-23T21:18:30.972Z",
"to": "2013-07-23T22:18:30.972Z"
}
}
},
{
"bool": {
"must": [
{
"match_all": {}
}
]
}
}
]
}
}
}
}
}
}
}
},
"size": 0
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment