Deployment Architecture

Splunk Universal Forwarder, how to set PATH environment variable

joshuapetitt
Path Finder

I need to add to the PATH environment variable used by Splunk Universal Forwarder.

I have tried editing splunk-launch.conf and I have checked the envvars using splunk envvars but this doesn't seem to set the path.

Is it possible to set the PATH variable that Splunk uses?

(Note, I only want to setup this specialized PATH for the splunkd instance. I do not want it to be systemwide)

Tags (1)

woodcock
Esteemed Legend

Why do you think that you need to do this? I have never had to do any such thing.

0 Karma

joshuapetitt
Path Finder

because I need to have splunk call a specific python interpreter. The system has python 3 installed. I need to install python 2, and set the PATH so that SUF calls python 2.

woodcock
Esteemed Legend

If that is truly necessary, several people have indeed made changes like this. You should ask for exactly that, namely "How do I configure my Splunk app so that it uses a different Python version installed outside of Splunk" or some such. You have far, FAR more likely to get a response to such a question.

0 Karma
Get Updates on the Splunk Community!

It’s all so meta | A Splunk Education blog about our blogs

C’mon over to the Splunk Training and Certification Community Site for the latest ways you can grow your minds ...

Index This | How can you take 2 from 5 and leave 4?

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

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

👻 Check out the bewitching Community Office Hours, Tech Talks, and Webinars we’ve conjured up for ...