Hi,
I am having a strange python behavior in my Splunk environment :
When I run a script with Splunk python as:
/opt/splunk/bin/python my_script.py
it fails. But when I run same script as:
/opt/splunk/bin/splunk cmd python my_script.py
it works. This is really a strange behavior to me.
My questions are:
1. Why first option does not work?
2. What can I do to load 'Splunk cmd python' in my django environment.
Hi shrirangphadke,
source /opt/splunk/bin/setSplunkEnv
in your django enviroment it will run the script as well/opt/splunk/bin/splunk
is actually a wrapper which load the setSplunkEnv
and starts the later command.
Hope this helps ...
cheers, MuS
Hi shrirangphadke,
source /opt/splunk/bin/setSplunkEnv
in your django enviroment it will run the script as well/opt/splunk/bin/splunk
is actually a wrapper which load the setSplunkEnv
and starts the later command.
Hope this helps ...
cheers, MuS
Thanks for your answer @Mus !!
Your answer is a key to some of my major issues.
Thanks again
you're welcome 🙂