Getting Data In

splunk unable to run exe file when execute batch

peiyongp
New Member

Hi,

I tried to run a batch file which can execute my exe file whenever splunk.

But it seems that my exe file will not execute.

Any help will be good.

Thanks.

Tags (1)
0 Karma
1 Solution

lguinn2
Legend

Here are a few questions:

Is the path to the executable correct? It should probably be explicit, or else you should set the PATH environment variable in your batch script.

Does the account that is running Splunk have permissions to see/execute this file? Scripts are launched by Splunk using the account where Splunk was installed.

Can you run the executable manually? Will it run if you are logged-in as the Splunk account? Are you running it from the same directory where the batch file is stored?

View solution in original post

0 Karma

peiyongp
New Member

Thanks for the reply.

To answer your questions.

Yes the path is correct.
Yes the account have permission.
I am able to run the executable manually.

The problem is the executable file is not at the directory.
I had moved the executable to the script directory. And its working.

Thanks.

0 Karma

lguinn2
Legend

Here are a few questions:

Is the path to the executable correct? It should probably be explicit, or else you should set the PATH environment variable in your batch script.

Does the account that is running Splunk have permissions to see/execute this file? Scripts are launched by Splunk using the account where Splunk was installed.

Can you run the executable manually? Will it run if you are logged-in as the Splunk account? Are you running it from the same directory where the batch file is stored?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...