Created
September 14, 2018 07:15
-
-
Save baybatu/98b5219f82de588ff99c4ee01e4ef91c to your computer and use it in GitHub Desktop.
Get records indexed in last 15 minutes on Elasticsearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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