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!

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

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...