GET Request to for the most recent event always returning the same thing

(Ben Hoffman) #1

Hello there, I am having some trouble getting the most recent event from my GET request. Here is the curl that I am using:

  curl localhost:9200/packetbeat-2017.01.26/_search?pretty=true -d '

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

SOLVED: I needed an '@' symbol instead of an "_" in from of the "timestamp" field.

This ALWAYS returns the same thing. I also tried in ascending order, and I really don't know what the deal with this is. All that I want is the info from the most recent event to happen. Please help me out

(Mark Walkom) #2

What do you mean by this? What does it return?

(system) #3

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