Splunk Enterprise

Python Migration Path

sanjubaba
Path Finder

I want to upgrade Python 2.7 to Python 3.7 to work with Splunk Enterprise 8.1 version. Can someone please guide me through the migration path of python?

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @sanjubaba,

as @richgalloway said, Splunk 8.x has both Python 2.7 and Python 3.7.

It's also avalilable an app to check your apps before migration to Splunk Readiness App (https://splunkbase.splunk.com/app/4698/) and in Splunk 8.2 there's an app called  Python Readiness App ( https://splunkbase.splunk.com/app/5483/) that guides you to the migration.

Anyway in Splunk 8.x you can use both the versions, but version 2.x is deprecated so soon will be in phase-out.

if you install Spunk 8 without any option, Splunk continue to use Python 2.7, but you can force python 3.7 adding a parameter in server.conf

python.version=python3

You can find morte infos at https://docs.splunk.com/Documentation/Splunk/8.2.0/Installation/PlanPython3 

Ciao.

Giuseppe

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk comes with both Python 2.7 and Python 3.7, at least for now, so you don't have to do anything to install Python 3.  Support for Python 2 will be dropped soon, however.

You do need to make sure any Python code in your apps support both Python 2 and Python 3.  As mentioned in your posting on this topic, the Splunk Upgrade Readiness app can help you modify your code.

---
If this reply helps you, Karma would be appreciated.

sanjubaba
Path Finder

@richgalloway does Splunk enterprise 8.1.X also supports python 2.7?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...