Splunk Search

How to develop custom python scripts ?

sunrise
Contributor

Hi Splunkers,

I wanna develop custom python scripts as a search command whose input data is search fields,
output data is processed data by itself.

Now I have a question that what is the best way of developing custom python scripts.
I know that logger.info() method can write to python.log, but not do how to debug and so on.
Is there anything way ?

Thank you for your help.

Tags (3)
0 Karma
1 Solution

chris
Motivator

If you want to debug the running script you could use PyDev PyDev (& Eclipse ).

View solution in original post

0 Karma

chris
Motivator

If you want to debug the running script you could use PyDev PyDev (& Eclipse ).

0 Karma

sunrise
Contributor

I'm sure Pydev and eclipse environment is pretty good for remote debug.
Thank you, chris.

0 Karma

nmistry_splunk
Splunk Employee
Splunk Employee

This is a broad question. Can you elaborate on what you wan to debug? Look at other scripts under SPLUNK_HOME/etc/apps/search/bin as examples on how to.

0 Karma
Get Updates on the Splunk Community!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...