Skip to content

Instantly share code, notes, and snippets.

@boris-42
Last active September 23, 2016 10:15
Show Gist options
  • Save boris-42/51d8ace34c919154ced6b3db4ec8c8cd to your computer and use it in GitHub Desktop.
Save boris-42/51d8ace34c919154ced6b3db4ec8c8cd to your computer and use it in GitHub Desktop.
curl -X GET <ES_URL>/log*/log/_search?size=5000&from=0 -d '
{
"query": {
"filtered": {
"filter": {
"range": {
"timestamp": {
"gte" : "now-1d/d"
}
}
}
}
},
"sort" : [
{"timestamp" : {"order" : "desc"}}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment