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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...