Splunk Search

Splunk 8 installation - Ubuntu default python used

GaetanVP
Contributor

Hello everyone,

When I install Splunk enterprise on my personal Ubuntu machine, it directly changed the default python bin.

It means that after the install when I type : 

 

which python

 

It will return a bin located in /opt/splunk/bin/python, which is not the default python I want for my system.

I'm having trouble to find information about what is done during the install and how to change this behavior...

Thanks a lot for your help! 

Labels (1)
0 Karma

GaetanVP
Contributor

Thanks for you reply, that helped me to find the root cause.

I used the tarball but I also added a line in my .bashrc file to add /opt/splunk/bin to my path (I just wanted the Splunk bin to be easier accessible)

But with that it also include the python bins that are located in that folder... Makes sense

Thanks again 🙂 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm guessing you installed using rpm (or equivalent).  Next time, use the tarball as it just drops files in the right locations and doesn't do any OS-related stuff.

To fix it, I think you just need to adjust your PATH variable to put your desired Python location before Splunk's.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...