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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

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 ...