I’m trying to run a splunk search in my workflow and wish to specify the time range of the search. I tried doing this in the query itself but I get no result. i.e
search earliest=-30d latest=now index=[insert whatever]
My next time step was to use the search timeframe. So I wrote a python script to parse out current time and last 30days. The script works perfectly fine.
When input it as [earliesttime]-[currenttime] → 1655031326-1657623326 in the search timeframe
no error but also no result.
If i dont specify the time range anywhere (query and search timeframe) I get the expected result.
So what am I doing wrong here? am I separating the time wrong? if it’s not ‘-’ then what is it?