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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...