Skip to content

Instantly share code, notes, and snippets.

@baybatu
Created September 14, 2018 07:15
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 baybatu/98b5219f82de588ff99c4ee01e4ef91c to your computer and use it in GitHub Desktop.
Save baybatu/98b5219f82de588ff99c4ee01e4ef91c to your computer and use it in GitHub Desktop.
Get records indexed in last 15 minutes on Elasticsearch
curl -XGET "http://ES_CLUSTER/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"range" : {
"@timestamp" : {
"gte" : "now-15m",
"lt" : "now"
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment