Dashboards & Visualizations

Using Activity > Jobs dashboard information, how do I create an alert if there are 50+ jobs running, if a job is running > 1 hour, and find searches per hour by user?

daniel333
Builder

All,

I was hoping to build a few alerts based on the information that I see in the Activity >> Jobs dashboard in Splunk 6.2.2.

A couple simple things
1) Alert when there are 50+ jobs running
2) alert if a job is running more than an hour
3) See searches per hour by user

Any example searches of app you can recommend to get me started?

0 Karma

stephanefotso
Motivator

Try something like this:

1) Alert when there are 50+ jobs running

    | rest /services/search/jobs|stats count |eval triggerer=(if( count>50,"ok","no"))|where triggerer="ok"|table triggerer

2) alert if a job is running more than an hour

  | rest /services/search/jobs |where runDuration>1600

3) See searches per hour by user (i'm not yet able to let you see searches per hour )

| rest /services/search/jobs|chart values(custom.search) by author
SGF
0 Karma

hcbomb
Path Finder

Have you looked into the Splunk on Splunk app?

https://splunkbase.splunk.com/app/748/

This should provide a very considerable head start on your searching performance and more!

0 Karma
Get Updates on the Splunk Community!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...