Current Timestamp in URL query

(Hari Baskar) #1


Could someone help me in forming URL query to fetch logs of the past fifteen minutes.

Am looking for something like:

http://localhost:9200/_search?q="sql" AND @timestamp:"2016-11-16T17:33:19"

Please help me what should be used in the @timestamp parameter.


(Adrien Grand) #2

A query like sql and @timestamp:[now-15m TO now] should work.

(Hari Baskar) #3

Works like a charm. Thanks a ton :slight_smile:

(system) #4

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