How to GET all events since a certain time

So currently I am using this POST query to get my data via HTTP:

"query": {
	"match_all": {}
"size": 1,
"sort": [{
	"@timestamp": {
		"order": "desc"

This get's me the data that I want, but only one at a time. I know that I can increase the size, but then that makes a potential for repeat data. Is there anyway that I can say "Give me all the hits from X time to right now?

I can keep track of the last request that I made in the script that I am writting, so I can just update that every time I make a new POST request.

Does help at all?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.