Splunk Dev

Python script develop/debug tools

rantravee
Path Finder

Hello,

I find it quite exhausting to use notepad++ for writing a pyhton script for Splunk . Any mistake takes a lot to debug (by opening splunkd.log) and fix .Plus there are a lot of typos and API misuse that go undetected into runtime problems. Being a beginner with Python I am wondering, is there any alternative available to optimize the developing/debuggin process ?

Thanks

Tags (2)
0 Karma
1 Solution

MuS
Legend

Hi rantravee,

being a Python beginner as well, I'm also using notepad++ and run the script like

$SPLUNK_HOME/bin/splunk cmd python $PATH_TO_YOUR_SCRIPT

In case of any error I got useful debug feedback so far. Maybe you can try the Python Debugger and see if this is more useful in your case.

hope this helps...

cheers, MuS

View solution in original post

MuS
Legend

Hi rantravee,

being a Python beginner as well, I'm also using notepad++ and run the script like

$SPLUNK_HOME/bin/splunk cmd python $PATH_TO_YOUR_SCRIPT

In case of any error I got useful debug feedback so far. Maybe you can try the Python Debugger and see if this is more useful in your case.

hope this helps...

cheers, MuS

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...