- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to have Audio Welcome Dashboard - Play .mp3 file when opening a dashboard
ejqespiritu
New Member
01-27-2020
07:54 PM
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>
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

renjith_nair
Legend
01-29-2020
12:27 AM
@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 🙂
What goes around comes around. If it helps, hit it with Karma 🙂
