Reporting

How to retrieve Saved search name from job sid?

SIddharth5794
Explorer

While using Splunk SDK of Python, how do you get the details of the saved search that initiated the job.
I have the job sid of the jobs going on and some jobs which are done processing. I want their Saved Search name or their Saved Search ID.

0 Karma
1 Solution

SIddharth5794
Explorer

Found the answer.
if,
import splunklib.client as client

services=client.connect(...)
jobs=service.jobs

for job in jobs:
    job.content['label']   #Will give you the saved_search name

View solution in original post

0 Karma

SIddharth5794
Explorer

Found the answer.
if,
import splunklib.client as client

services=client.connect(...)
jobs=service.jobs

for job in jobs:
    job.content['label']   #Will give you the saved_search name
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...