Splunk Enterprise

Bar Chart Alert

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:

| stats dc(ticket_number) by device_name 
| head 15


Thank you!

Labels (3)
0 Karma


Try something like this as the basis for your alert

| 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!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...