Instantly share code, notes, and snippets.

Embed
What would you like to do?
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