Dashboards & Visualizations

Is it possible to play an audio alert when a search (single viz) on a dashboard changes?

ALXWBR
Path Finder

I have a dashboard with a real-time search that populates a single viz with a number between 1 and 7.
I was wondering if it was possible to play an audio alert when the result changes, just a simple ping from a .wav file?
I have done a bit of research but was unable to find anything suitable.

0 Karma
1 Solution

ALXWBR
Path Finder

This was actually solved with some very simple html.

I Uploaded the .mp3 files to $SPLUNK_HOME/etc/apps/[MYAPP]/appserver/static and name them 1.mp3, 2.mp3...

In the single viz, I set it to populate the result into a token using the below code.

<search base="base">
  <query>| head 1 | table position</query>
    <progress>
      <set token="position_tok">$result.position$</set>
    </progress>
</search>

In a html panel I then placed the following

<html>
  <body>
    <audio src="/static/app/[MYAPP]/$position_tok$.mp3" autoplay="autoplay"/>
  </body>
</html>

and hid the panel. Now, when the result changes, it plays the relevant mp3 file on change

View solution in original post

ALXWBR
Path Finder

This was actually solved with some very simple html.

I Uploaded the .mp3 files to $SPLUNK_HOME/etc/apps/[MYAPP]/appserver/static and name them 1.mp3, 2.mp3...

In the single viz, I set it to populate the result into a token using the below code.

<search base="base">
  <query>| head 1 | table position</query>
    <progress>
      <set token="position_tok">$result.position$</set>
    </progress>
</search>

In a html panel I then placed the following

<html>
  <body>
    <audio src="/static/app/[MYAPP]/$position_tok$.mp3" autoplay="autoplay"/>
  </body>
</html>

and hid the panel. Now, when the result changes, it plays the relevant mp3 file on change

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...