Alerting

how to config webhook payload for an alert action?

Marcus-advent
Loves-to-Learn Lots

I want to custom payload for webhook ,but in webhook UI,only a input box for url ,I don't know where I can configure the payload parameter . thanks
Marcusadvent_0-1719495323371.png

 

Labels (1)
0 Karma

tscroggins
Influencer

Hi @Marcus-advent,

The only parameter configurable via Splunk Web is the URL, which must be properly encoded.

The webhook alert action uses a predefined JSON object body. The field values from the first result of your alert search will be added to the body's result field. See https://docs.splunk.com/Documentation/Splunk/latest/Alert/Webhooks for more information.

The webhook source code is very simple. You can view it directly in $SPLUNK_HOME/etc/apps/alert_webhook/bin/webhook.py or by downloading and extracting a copy of Splunk Enterprise for any platform if you don't have access to your Splunk instance.

0 Karma

Marcus-advent
Loves-to-Learn Lots

This means that we can only return the standard content. Can't be customized? Will these contain log message, resource, resourceType?

 

And I have this post interface

like this https://abc.ssnc-corp.cloud/splunk

I asked the my splunk administrator to add “ssnc-corp.cloud” to the allow list, but it didn't seem to work. Do we need to restart splunk? What if I can check the reason why it does not take effect?

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...