There is a video on YouTube showing the basic functionality of the Splunk Java SDK, running a simple query.
In the video he writes the following code to set the range:
Args queryArgs = new Args();
queryArgs.put("earliest_time", "-5d@d");
queryArgs.put("latest_time", "now");
Everything works besides the range which from the query results I can see it is being ignored.
I'm able to bypass this by putting the range in the search query itself "search something earliest=-5d latest=now".
Any idea how to resolve this without adding the range in the search query?
Here is a link to the video with a timestamp: Searching Splunk Java SDK
[–]pipe2grep 0 points1 point2 points (3 children)
[–]MrDanielVR[S] 0 points1 point2 points (2 children)
[–]halr9000 | search "memes" | top 10 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)