Splunk Enterprise

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

rajashekar_s
Path Finder

Hello,
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?

jkat54
SplunkTrust
SplunkTrust

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

rajashekar_s
Path Finder

Thank you. Will try that out.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...