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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...