Hi, I'm trying to setup a simple (proof-of-concept) popup window on my Windows Server 2k8 machine, with Splunk alert-trigger. I have tried the "echo.bat" sample from here already.
My popup window (for now) is a simple .exe command which watches for all command-line arguments and appends them to a textbox on the popup. The executable is written in .NET 4.0.
At the moment, I an using the | runshellscript command to initiate the script (echo.bat)
I can run the echo.bat just fine, and the results are as expected. Even if I inserted the line at the top to run my .exe file, the results are correctly outputted to the echo_output.txt file as expected; however there is no popup window. I can run the popup window by calling the command directly - just not with the | runshellcript.
Am I missing something here? Maybe I don't even need to write a exe command if there is some better way of doing this with Splunk. Any help is greatly appreciated.
asked 26 May '11, 20:34
Are you trying to pop up a Window on your machine from a scripted alert? It's possible that it is happening, but is simply happening on the Splunk process' desktop, not one you're looking at. It would be expected that any programs that launch and open a window are going to open them in a desktop owned by the Splunkd service process, not by any logged-in user (and logging in as the same user would not and should not be expected to let you see it either).
If you're trying to do this, the right way is to use the scripted alert to send a signal, message, trap, email, or other mechanism to another process that is able to display things on your interactive desktop.
answered 30 May '11, 12:15