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!

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 ...