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

@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>
Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...