Debug Splunk Inputs or script
I’m always forgetting how to debug a python script within Splunk.
Use the following command to initialise the Splunk variables etc and debug your script:
$SPLUNK_HOME/bin/splunk cmd python /full/path/to/yourscript.py
Mutterings, inconsistant tips, rants and randomness
I’m always forgetting how to debug a python script within Splunk.
Use the following command to initialise the Splunk variables etc and debug your script:
$SPLUNK_HOME/bin/splunk cmd python /full/path/to/yourscript.py