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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...