Hi,
I'm trying to use the "Palo Alto Networks Add-on for Splunk", but when I try to configure it, the page always remains loading.
I opened the splunkd.log and found this error:
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': SyntaxError: invalid syntax
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': Traceback (most recent call last):
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': File "D:\Splunk\bin\runScript.py", line 82, in
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': exec(open(REAL_SCRIPT_NAME).read())
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': File "", line 4, in
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': File "D:\Splunk\etc\apps\Splunk_TA_paloalto\bin\splunk_ta_paloalto\splunktaucclib\rest_handler\endpoint\validator.py", line 388
11-25-2019 14:53:52.330 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': except ValueError, exc:
11-25-2019 14:53:52.331 +0100 ERROR ScriptRunner - stderr from 'D:\Splunk\bin\Python3.exe D:\Splunk\bin\runScript.py setup': ^
Can anyone help me?
Thanks, Mauro
Per the error message, this addon is not prepared to run on python version 3.
Edit the server.conf at $Splunk_home/etc/system/local and add the parameter below at [general] stanza, save file and restart splunk service
[general]
python.version=python2