Splunk Search

How to find a real time job is running morethan 30mins?

Anud
Path Finder

How  to find a real time job is running morethan 30 mins for example below screenshot.

Here need to create an alert for which job is running more than 30 mins. Now we are manually watching this job from SH -->activity-->job.

Anud_0-1647243619596.png

Thanks in Advance.

 

Labels (1)
0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @Anud 

Please try this 

| rest /services/search/jobs | search eventSorting=realtime
| eval RuntimeinMinutes =round(runDuration/60)
| where RuntimeinMinutes > 30
| rename title as QueryUsed
| table author QueryUsed RuntimeinMinutes

0 Karma

Anud
Path Finder

Hi,


i am not getting any details with the base search
| rest /services/search/jobs | search eventSorting=realtime

Here i observed that eventSorting have values desc and none only.

i need to identify when the real time job is running more than 30 mins under the SH-->activity-->job like below.

Anud_0-1647352833377.png

Anud_0-1647352943598.png

 

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...