Skip to content

Instantly share code, notes, and snippets.

@labrown
Created November 7, 2013 17:11
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 labrown/7358171 to your computer and use it in GitHub Desktop.
Save labrown/7358171 to your computer and use it in GitHub Desktop.
FIltered query by date range
{
"fields": [],
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
"range": {
"@timestamp": {
"gte": "2013-11-05",
"lt": "2013-11-06"
}
}
},
{
"term" : { "Field" : "Value"}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment