Alerting

Programmatically generate an alert

leustean
Explorer

Hello,

As the title states I would like to know if it is possible to generate programmatically an alert and then inject it into Splunk. Then Splunk would act based on this alert by sending an email, or writing to the syslog etc.

Personally I would image this is something that can be obtained using the Splunk Rest API

I would be interested for any direction towards obtaining this goal.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You can programmatically insert an event into Splunk. You can then set up a real-time search for that event and trigger an alert when it is found.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...