Deployment Architecture

Is there way to customize the Payload when Splunk calls webhook?

rrkollip
New Member

I am calling webhook when certain alert triggers in splunk, I want to exact payload by looking at the alert result so that I can better program the JAVA rest API.

Tags (1)
0 Karma

acharlieh
Influencer

Using the built-in webhook action, no. This is explicitly stated in the dev guide: http://dev.splunk.com/view/dev-guide/SP-CAAAE7A

At this time, the JSON payload format can't be changed.

That said, the custom alert action framework / Modular alert framework, means that anyone can create their own custom alert action, and do whatever you want with results, including invoke a webhook with a customized payload. Splunkbase has a number of custom alert actions, some of which invoke webhooks for different platforms and if none of these are suitable, you can always develop your own following the guide and resources in the docs: http://docs.splunk.com/Documentation/Splunk/7.0.2/AdvancedDev/ModAlertsIntro

The Splunk Add-on Builder may also help in provide some utilities for building your custom alert action.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...