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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...