Splunk Enterprise

How can an alert script be run as a local user?

Path Finder

I am trying to run a simple batch script to open a web browser when an alert condition is met. Though the script is executing when run manually, I am unable to see the browser open. Going through the forum, I have seen the below explanation from this post: https://answers.splunk.com/answering/25308/view.html

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

Can someone please guide me if there is a way to run the script in a way i can see the browser open i.e., run as a logged in user?
Changes in script? or Splunk Configuration?


If this is windows you can probably use the runas command.

You may have to edit group policy to allow the splunk user to runas the account too.

It would only run as this user on the splunk machine... its not going to open a browser on the workstations that have splunk UI /WEb open.

0 Karma

Path Finder

Thank you. Will try that out.

0 Karma
Get Updates on the Splunk Community!

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...

New Customer Testimonials

Enterprises of all sizes and across different industries are accelerating cloud adoption by migrating ...