AnsweredAssumed Answered

How to filter query by time on RestAPI

Question asked by Scott Smith on Dec 5, 2012
Latest reply on Nov 20, 2016 by Kenny Kim

I'm trying to get a listing of sessionid and time for specific sessions where the alias.host matches a specific domain within a set time period.  However when I use the following it doesn't limit the time period and I get all of the sessions returned:

 

http://<device>:<port>/sdk?msg=query&query=select sessionid time where alias.host="domain.com"&time1="2012-Dec-03 00:00:01"&time2="2012-Dec-04 00:00:01"&size=1000

or

http://<device>:<port>//sdk?msg=query&query=select%20sessionid20where%20alias.host=%22domain.com%22&time1=%222012-Dec-03%2000:00:01%22&time2=%222012-Dec-04%2000:00:01%22&size=1000

 

What am I missing?

Outcomes