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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...