Alerting

Using webhook as an alert action, can webhook retry if http status is not ok?

LPatPSP
New Member

I am considering using webhook as an alert action. One concern is that if the webhook URL is temporarily not available, we may miss the alert action. Is it likely to configure webhook to retry when the webhook call http status is not ok?

Thanks

0 Karma

frobinson_splun
Splunk Employee
Splunk Employee

Hi @LPatPSP,
After consulting with some colleagues, retrying is not a supported option for webhooks.

However, you might consider this workaround:

Log an event if and when a webhook fails. Then, run a scheduled search to check for these failure events and alert on them. Set up a webhook alert action on this alert. The webhook can retry the original request. Note that the log event might need to include the original data payload from the first webhook notification.

Hope this is helpful!

0 Karma

frobinson_splun
Splunk Employee
Splunk Employee

Hi @LPatPSP,
Thanks for your question. I'm checking in with our product and engineering team to see what we can suggest.

Please stay tuned!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...