Alerting

Audio Alerts on Client Browser. Is it Possible?

maverick
Splunk Employee
Splunk Employee

I would like an audio alert to be heard by the Splunk user for certain events.

Any idea how to use scripted alert to execute a local bat file in client side to play the audio sound for the user?

Here is a sample for windows client c:\playsound.bat

@echo off mplay32 -play -close c:\isdown.wav

I'm thinking it's not possible on the browser-side (GUI), without some custom setup on each user's desktop maybe, most likely a "hack" in the AJAX I'm thinking to get the local user's sound player going.

Any ideas would be greatly appreciated. OR if you KNOW this won't work at all, then a validation of that would be nice too.

Tags (2)
0 Karma

brettcave
Builder

How about using a flash player in a dashboard.

0 Karma

CerielTjuh
Path Finder

If you need the audio on 1 computer only you could make a batch which starts windows media player on a remote pc and start an audio file.

psexec (sysinternals) could help you with that.

psexec \\computername sndrec32 /play /close c:\windows\media\chimes.wav

Technet link to psexec

Johnvey
Contributor

It's technically possible to have the browser play sounds. In fact, there is an easter egg in the product that plays sounds when searching. However, wiring up sounds to Splunk alerts would require a bunch of glue to make it useful. We'll look into this in conjunction with the real-time alerts in the upcoming release.

maverick
Splunk Employee
Splunk Employee

According to Simon and the Splunk Ninja, the batch file needs to be executed on the Search Head and not the client which means it’ll probably play on a server with no speakers in some data center.

An easier way to accomplish this could be to have an email filter in Outlook kick off some audio alert when an email comes in and matches some pattern.

Otherwise you’d need some daemon waiting to play a sound somewhere which is triggered by a server-side (Splunk Search Head) alert trigger script.

You will also likely have to have the Splunk services running on windows set to interact with desktop otherwise you won't hear the audio. It's a setting in the splunkd service.

0 Karma

Dan
Splunk Employee
Splunk Employee

Not the path you're on, but here's another possible solution for audible alerts: http://blogs.splunk.com/2009/04/15/audible-alerts/

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...