Getting Data In

Extending job lifetime via REST

huaraz
Explorer

Is there a way the extend the lifetime of a job via REST like you can via UI ?

https://docs.splunk.com/Documentation/Splunk/8.0.0/Search/Extendjoblifetimes

I have the problem that the job expires before I can download the data 😞

Markus

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust
0 Karma

richgalloway
SplunkTrust
SplunkTrust
0 Karma

huaraz
Explorer

Sorry, but I still don't see how I can change it. i.e. is the custom.ttl ?

Thank you
Markus

0 Karma

huaraz
Explorer

After a bit more digging I found it . Thank you.

It is

curl -k -u admin:pass https://localhost:8089/services/search/jobs/mysearch_02151949/control -d action=setttl -d ttl=86400

Markus

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...