Skip to content

Instantly share code, notes, and snippets.

@boyvanduuren
Last active December 27, 2015 11:29
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 boyvanduuren/7318418 to your computer and use it in GitHub Desktop.
Save boyvanduuren/7318418 to your computer and use it in GitHub Desktop.
Elasticsearch/logstash: find all within time range (epoch is in milliseconds)
curl -XGET 'http://localhost:9200/_search?pretty' -d '{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "*"
}
},
"filter": {
"range": {
"@timestamp": {
"from": 1383610458283,
"to": "now"
}
}
}
}
}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment