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
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...