Splunk Search

Find Job Duration from two separate events.

saty586
Explorer

Jobs Running on daily basis.

Events like-

1) "Job_Name": "XYZ", "status":" Start"

2) "Job_Name": "XYZ", "status":" SUCCESS"

3) "Job_Name": "XYZ", "status":" Failure"

Need to calculate and display the job run time  and status on dashboard for multiple days/runs.

Below query works well for single run but for multiple run runtime is not getting calculated.

search to fetch both "job started" and "job finished" events
| eval eventType=if(searchmatch("job started"),"Start","End")
| chart values(_time) over Job_Name by eventType
| eval jobduration=End-Start

 

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The transaction command can help with this

0 Karma
Get Updates on the Splunk Community!

Your Guide to Splunk Digital Experience Monitoring

A flawless digital experience isn't just an advantage, it's key to customer loyalty and business success. But ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...