Reporting

Splunk REST API - add webhook using API but Splunk Web UI not showing it

gdbtek
New Member

has anyone successfully using Splunk API call /services/saved/searches/SEARCH_NAME(https://docs.splunk.com/Documentation/Splunk/9.2.1/RESTREF/RESTsearch#saved.2Fsearches.2F.7Bname.7D) to add a webhook for an existing Splunk report? I added action.webhook=1 , action.webhook.param.url=https://1234.com , and actions=pagerduty,webhook successfully through API but the Splunk UI does not show the webhook on UI (please see screenshot). Anyone has any idea what seem to be the problem?

 

 

curl \
        --data-urlencode 'action.webhook.param.url=https://1234.com' \
        --data-urlencode 'action.webhook=1' \
        --data-urlencode 'actions=pagerduty,webhook' \
        --data-urlencode 'output_mode=json' \
        --header "Authorization: Splunk A_TOKEN_HERE" \
        --insecure \
        --request 'POST' \
        --retry '12' \
        --retry-delay '5' \
        --silent \
        "https://localhost:8089/services/saved/searches/test-12345"

 

 

Screenshot 2024-05-20 at 5.32.11 PM.png

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...

Splunk AppDynamics Agents Webinar Series

Mark your calendars! On June 24th at 12PM PST, we’re going live with the second session of our Splunk ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...