Alerting

Does Splunk support sound alerts in Enterprise dashboards based on the threshold in the query?

maryamchar
Explorer

Hello, 

Does Splunk supports sound alerts in Enterprise dashboards based on the threshold in the query?

Ex. I have a query where it shows the (statues > 100) or (statues < 100).  If the (statues >= 100), i would like to get a sound alert. I'm displaying these statuses in Trellis Single Value. Please let me know if it's possible to get an alert once it reaches a certain threshold and how would you set it up in Splunk dashboard? Thank you!

Labels (2)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@maryamchar  - As @richgalloway  mentioned there is no native support but if you want to you can write a custom JavaScript function that can perform the task.

 

Part of your dashboard XML

        <single>
            <title>Active Users</title>
            <search>
                <query>
                   <your query>
                    | stats count
                </query>
                <done>
                   <set token="tkn_alert_me">$result.count$</set>
                </done>
            </search>
            <option name="field">count</option>
        </single>

 

Your JavaScript Code:

 

require([
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/searchmanager',
    'splunkjs/mvc/simplexml/ready!'
], function ($, mvc, SearchManager) {

    // Defining model tokens
    let submittedTokens = mvc.Components.getInstance('submitted');
    submittedTokens.on("change:tkn_alert_me", function(value){
           if(value>=100){
                  // follow this link to see how to play sound -  https://stackoverflow.com/questions/10105063/how-to-play-a-notification-sound-on-websites
            }
     });
});

 

If you are new to adding Javascript to the Splunk dashboard - https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-JavaScript-code-in-Splunk-Cloud... 

 

I hope this helps!!!  Kindly accept the answer it does.

richgalloway
SplunkTrust
SplunkTrust

Splunk dashboard do not have native support for sounds.

---
If this reply helps you, Karma would be appreciated.

maryamchar
Explorer

Is this something Splunk planning to add in the future? Dashboard sound alerts? Thank you!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I have no idea since I'm only a user, but I hope not.  I don't like noisy computers.

You can ask for sound support at https://ideas.splunk.com

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 3)

Welcome back to Splunk Classroom Chronicles, our ongoing blog series that pulls back the curtain on Splunk ...

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Almost Too Eventful Assurance: Part 1

Modern IT and Network teams still struggle with too many alerts and isolating issues before they are notified. ...