5/30/2023 0 Comments Python3 version![]() ![]() To force Splunk Enterprise to use only the Python 3 interpreter regardless of script-level setting, set python.version = force_python3. These settings specify the interpreter to use if a script-level setting has not been specified, but script-level settings take precedence over the global setting, except if Python 3 is forced. To specify Python 3, set python.version = python3. Python.version is set to python2 by default in Splunk Enterprise version 8.0. ![]() For more information how Splunk Enterprise uses configuration files, see About configuration files. The stanza that controls Python version is. The global setting resides in the nf file, located in $SPLUNK_HOME/etc/system/local/. Splunk Enterprise version 8.0 include a global setting, python.version, to specify which Python interpreter to use across an instance. ![]() To force Splunk into using Python3 the documentation states: I am testing my custom app, which I have converted to be compatible with python2 and python3, on a Splunk 8.0.1 instance. ![]()
0 Comments
Leave a Reply. |