Hi, From the below github link, I see this python code, which works on the search head(linux), when I use this command. /opt/splunk/bin/splunk cmd python ko_change.py https://github.com/harsmarvan...
See more...
Hi, From the below github link, I see this python code, which works on the search head(linux), when I use this command. /opt/splunk/bin/splunk cmd python ko_change.py https://github.com/harsmarvania57/splunk-ko-change/blob/master/ko_change.py I see below import statements. import splunk.rest as rest import splunk.auth as auth When I use these, import statements, in my laptop, vscode, it get below error. "ModuleNotFoundError: No Module named "splunk.auth"; 'splunk' is not a package" "ModuleNotFoundError: No Module named "splunk.rest"; 'splunk' is not a package" I have splunk-sdk installed in my vscode. splunklib is working. So the question here is, how come the above import statements work on splunk search head(Linux) , but not in vscode (in my laptop), even when I have splunk-sdk installed? What library, do I need to install, to make splunk.auth and splunk.rest work in vscode (on my windows laptop)