Getting Data In

| rest /services/search/jobs Source?

andrewkenth
Communicator

Is there a way to find the source of a job that ran? For instance is it on a dashboard or is it a preconfigured report and if so show the proper names of the items (report name, dashboard panel name)? It seems there is only a title (label) when it's run on the scheduler.

| rest /services/search/jobs
Tags (2)
0 Karma

somesoni2
Revered Legend

Try this: (just per my understanding, may need revision)

| rest /services/search/jobs | eval Job_type=if(delegate="scheduler","Scheduled","Adhoc")| rex field=id "(?<jobId>[^//]*)$"| rename eai:acl.app as App | eval searchType=case(isnum(jobId),"Regular Search", LIKE(jobId,"sch%"), "Scheduled Search",1=1,"Dashboard Search") | where searchType="Scheduled Search" | eval searchType=if(mvindex(split(jobId,"_"),5)==label AND isBatchModeSearch=1,"Scheduled Report", searchType) | table Job_type, App, label , searchType , updated
0 Karma
Get Updates on the Splunk Community!

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 ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...