Greetings!
I am writing a Python script to create a custom search command that goes out and reaches out to an API to get some data back based on what is passed to it. Whenever I run the script via /opt/splunk/bin/splunk cmd python splunk.py , I get the following import error:
Traceback (most recent call last):
File "splunk.py", line 2, in <module>
import splunk.Intersplunk
File "/opt/splunk/etc/apps/duoSearch/bin/splunk.py", line 2, in <module>
import splunk.Intersplunk
ImportError: No module named Intersplunk
When I open up the interpreter via /opt/splunk/bin/splunk cmd python and try to import it there via import splunk.Intersplunk , I do not get an error.
... View more