Alerting

Creating real time Alerts using Splunk REST API

rishabh98
New Member

Hi. I am trying to create real-time alerts using splunk REST API by using https://localhost:8089/services/saved/searches?output_mode=json POST API with the following parameters :-

  1. alert_type = always
  2. is_scheduled = 1
  3. cron_schedule = * * * * *
  4. alert_comparator = greater than
  5. alert_threshold = 0
  6. search = index=*
  7. name = Demo-alert-test
  8. actions = webhook
  9. action.webhook.param.url = my-webhook-url
  10. allow_skew = 0 

    With the help of these parameters, I am only generating alerts with cron scheduling. Is there any way to create alerts for real time scheduling. Need Good suggestions. Thanks!
Labels (2)
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...