Dashboards & Visualizations

How to have Audio Welcome Dashboard - Play .mp3 file when opening a dashboard

ejqespiritu
New Member

Hi ,

I've been trying to play an audio when the dashboard loads. but can't seem to make it work.

mp3 file path

/opt/splunk/etc/apps/(APPNAME)/appserver/static/welcome.mp3

Splunk code:

<dashboard>
  <label>AudioWelcome_POC</label>
  <row>
    <panel>
      <title>SAMPLE PANEL</title>
        <html>
          <body>
            <audio src="welcome.mp3" autoplay="autoplay"/>
          </body>
         </html> 
      <table>
        <search>
          <query>index=""</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
Tags (1)
0 Karma

renjith_nair
Legend

@ejqespiritu,

Change the source to

<audio src="/static/app/<appname>/filename.mp3" autoplay="autoplay"/>

I have placed the file in Search app and below works fine

<dashboard>
   <label>AudioWelcome_POC</label>
   <row>
     <panel>
       <title>SAMPLE PANEL</title>
         <html>
           <body>
             <audio src="/static/app/search/filename.mp3" autoplay="autoplay"/>
           </body>
          </html> 
       <table>
         <search>
           <query>index="_internal"|stats count</query>
           <earliest>-15m</earliest>
           <latest>now</latest>
         </search>
         <option name="drilldown">none</option>
       </table>
     </panel>
   </row>
 </dashboard>
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...