We have a few addons not compatible with python3 and we need them to work with Splunk 9. Splunk 9 does not come with python2, that’s the challenge. How do we fix it? we need to do 3 things:
- Copy bin/python2.7 from old splunk server to new server
- Copy lib/python* from old server to new servers
- add python.version=unspecified to etc/local/server.conf in [general] section
- restart the server
This is my script:
yes | /bin/cp -r -p /Data/poc/splunk738-python2/splunk738/bin/python2 /opt/splunk/bin/ yes | /bin/cp -r -p /Data/poc/splunk738-python2/splunk738/lib/python2 /opt/splunk/lib/ sed -i ‘4ipython.version=unspecified’ /opt/splunk/etc/system/local/server.conf
/opt/splunk/bin/splunk restart