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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...