Splunk Enterprise

Python upgrade

gcusello
SplunkTrust
SplunkTrust

Hi at all,
probably it's an already asked question but I cannot find the correct one:
I upgraded Splunk to 8.0.2 on my test site before to execute in production systems.
I setted (as documented) in $SPLUNK_HOME/etc/system/local/server.conf [general] the python.version = python3 and (after restart) this setting is confirmed by btool.
But checking the Python version (with splunk cmd python -V) I still have Python 2.7.17.

Where could be the error? I missed some step?
in documentation there's only to add the python.version = python3 row in server.conf and restart Splunk but I still have the old.

Now I'm checking on a Windows system but production systems are Red Hat.

Thank you.
Ciao.
Giuseppe

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust
0 Karma

btshivanand
Path Finder

Adding python.version = python3 is not required as i think.Since i see that python 3 is already running. Is it correct?

/splunk cmd python3 --version
Python 3.7.4

 

Regards,Shivanand

 

 

 

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Ciao,
I found the solution in this answer.
https://answers.splunk.com/answers/795318/switching-to-python3-in-splunk-8.html

Ciao.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...