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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

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