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!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...