Splunk Dev

Java SDK - How to Save a Job


I am running a Job and retrieving datas over 1 Gb.

What happpens is that the job expires before I have time to load all the datas.

Is there a way to save the job using the API or increase the time before the job expires ?

Tags (3)
0 Karma


You can use the job.touch() method to keep the job alive for the given ttl (time to live) or modify the ttl by using job.setttl(<ttl in seconds>).

"Touching" the job every few thousand events might be a good idea. Additionally, using job.cancel()when you've finished processing the results can be used to remove the job.


Splunk Employee
Splunk Employee
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...