Skip to content

Instantly share code, notes, and snippets.

@bkerley
Created February 19, 2015 01:30
Show Gist options
  • Save bkerley/99b0c7602ee2f6a82a1b to your computer and use it in GitHub Desktop.
Save bkerley/99b0c7602ee2f6a82a1b to your computer and use it in GitHub Desktop.
kibana queries
{
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "kibana.dev"
}
}
]
}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"from": 1424305418499,
"to": 1424309018499
}
}
}
]
}
}
}
},
"highlight": {
"fields": {},
"fragment_size": 2147483647,
"pre_tags": [
"@start-highlight@"
],
"post_tags": [
"@end-highlight@"
]
},
"size": 500,
"sort": [
{
"@timestamp": {
"order": "desc",
"ignore_unmapped": true
}
},
{
"@timestamp": {
"order": "desc",
"ignore_unmapped": true
}
}
]
}
{
"facets": {
"0": {
"date_histogram": {
"field": "@timestamp",
"interval": "30s"
},
"global": true,
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"query": {
"query_string": {
"query": "kibana.dev"
}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"from": 1424305418498,
"to": 1424309018498
}
}
}
]
}
}
}
}
}
}
}
},
"size": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment