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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...