The following solution seemed to work at first. But if prevents Splunk from starting. Splunk support is currently still working on this issue for me.
server.conf:
[general]
python.version = force_python3
-my python 3.7.4 , which is in C:\Python3
-copy custom python.exe to C:\Program Files\SplunkUniversalForwarder\bin\Python3.exe
in C:\Program Files\SplunkUniversalForwarder\etc\splunk-launch.conf
PYTHONPATH=C:\Python3\lib
<<
restart splunk and custom python was picked up
splunk cmd python --version
Python 3.7.4
,I contacte Splunk support and the following solution worked for me:
server.conf:
[general]
python.version = force_python3
-my python 3.7.4 , which is in C:\Python3
-copy custom python.exe to C:\Program Files\SplunkUniversalForwarder\bin\Python3.exe
in C:\Program Files\SplunkUniversalForwarder\etc\splunk-launch.conf
PYTHONPATH=C:\Python3\lib
<<
restart splunk and custom python was picked up
splunk cmd python --version
Python 3.7.4
... View more