Splunk Dev

Splunk search results

ashvini_jain
Loves-to-Learn

Hi
I recently started using splunk in my company. Being new to it, I don't know much at the back end of the splunk. I want to know how can we get search results to feed in the python script via alert action -> run script. 
Pointing towards useful  documentation also would be helpful. 


Labels (1)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @ashvini_jain 

There is some useful documentation here https://docs.splunk.com/Documentation/Splunk/8.0.4/AdvancedDev/ModAlertsBasicExample which might help with what you're looking for. Custom alerts use stdin to take in the results and can then be parsed and acted upon.

I hope this helps.

 

0 Karma

p_gurav
Champion

Hi Ashvini,

Here is the Splunk document which you can refer to, they also give some examples which will help to understand better.

https://docs.splunk.com/Documentation/Splunk/8.0.4/AdvancedDev/CustomAlertConvertScripted

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...

Keep the Learning Going with the New Best of .conf Hub

Hello Splunkers, With .conf26 getting closer, there’s already a lot of excitement building around this year’s ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...