Skip to content

Commit 42bc0b7

Browse files
committed
Clarify Splunk auth: single URL example with token, header as fallback
1 parent 055b037 commit 42bc0b7

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

  • docs/configuration/exporting/send-events

docs/configuration/exporting/send-events/splunk.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,19 @@ Webhook URL
1818
1919
https://api.robusta.dev/webhooks?type=alert&origin=splunk&account_id=<ACCOUNT_ID>
2020
21-
Splunk's built-in **Webhook** alert action does not support custom headers. Authenticate via the URL:
22-
23-
.. code-block::
24-
25-
https://api.robusta.dev/webhooks?type=alert&origin=splunk&account_id=<ACCOUNT_ID>&token=<ROBUSTA_API_KEY>
26-
2721
Configure Splunk
2822
----------------
2923

24+
Splunk's built-in **Webhook** alert action does not let you set custom headers, so authenticate via the URL.
25+
3026
1. Open or create a Splunk saved search and choose **Add Actions → Webhook**.
31-
2. Set the **URL** to the URL above.
32-
3. Save the search. Splunk will POST the search results to Robusta whenever the alert fires.
27+
2. Set the **URL** to the webhook URL above with ``&token=<ROBUSTA_API_KEY>`` appended, so authentication travels with the request:
28+
29+
.. code-block::
30+
31+
https://api.robusta.dev/webhooks?type=alert&origin=splunk&account_id=<ACCOUNT_ID>&token=<ROBUSTA_API_KEY>
3332
34-
For environments where you control the Splunk app, use the **Webhook Alert Action** plugin to send an ``Authorization: Bearer <ROBUSTA_API_KEY>`` header instead of the URL token.
33+
3. Save the search. If your Splunk environment has the **Webhook Alert Action** app installed, you can instead set an ``Authorization: Bearer <ROBUSTA_API_KEY>`` header and use the plain webhook URL without ``&token=…``.
3534

3635
Verify
3736
------

0 commit comments

Comments
 (0)