Splunk Enterprise

Bar Chart Alert

michaelsplunk1
Path Finder

Hi all!

I would like to set an alert on a bar chart. The bar chart shows the number of service desk tickets per each device.

How can I alert when one of these bars increases by five tickets within five minutes?

This is the query that produces the bar chart:

index=sample_index
| stats dc(ticket_number) by device_name 
| head 15

 

Thank you!

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this as the basis for your alert

index=sample_index
| bin _time span=1m
| stats dc(ticket_number) as tickets by _time device_name 
| streamstats time_window=5m earliest(tickets) as previous_tickets by device_name
| eval diff=tickets-previous_tickets
| where diff>4

This uses a rolling 5 minute window in case your increase happens across a 5 minute boundary 

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...