Skip to content

Commit c08a3cb

Browse files
committed
Update Blog “integrating-hpe-greenlake-webhooks-with-splunk”
1 parent 910f1fc commit c08a3cb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

content/blog/integrating-hpe-greenlake-webhooks-with-splunk.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ This allows you to get your HEC endpoint, which is used in the Python handler to
293293

294294
 Don’t forget to modify the Python handler (shown above) line 7 accordingly.
295295

296-
3. Generate an API key (Splunk session key)
296+
### Generate an Splunk REST API key
297+
298+
In order to use the custom REST endpoint in Splunk, you need to get an API key which HPE GreenLake will use to authenticate against Splunk when setiing up the webhook and sending events. You can use the following cURL command to generate a key.
297299

298300
```shell
299301
curl -k https://your-splunk-instance:8089/services/auth/login \
@@ -322,9 +324,13 @@ The complete integration flow works as follows:
322324
323325
* Deploy the custom Splunk endpoint handler using the above HPE webhook handler Python script.
324326
* Make sure to set the HEC endpoint in the Python script (line 13)
325-
* Make sure to set the API key (Splunk session key) in the Python script (line 14)
327+
* Make sure to set the Splunk HEC API token in the Python script (line 14)
326328
* Make sure to set the HPE GreenLake webhook secret in the Python script (line 15)
327-
* Register the webhook handler URL with HPE GreenLake: [`https://your-splunk-instance:8089/servicesNS/-/your_app/hpe/webhook`](https://your-splunk-instance:8089/servicesNS/-/your_app/hpe/webhook)``
329+
* Register the webhook handler URL with HPE GreenLake:
330+
331+
* URL of handler[`: Uttps://your-splunk-instance:8089/servicesNS/-/your_app/hpe/webhook`](https://your-splunk-instance:8089/servicesNS/-/your_app/hpe/webhook)``
332+
* Set the same secret key as we setup in the Python handler (line 15)
333+
* Use API as Authentication type and set the API key to the Splunk REST API Key generated in the section above.
328334
329335
> Note: See [this blog](https://developer.hpe.com/blog/getting-started-with-the-hpe-greenlake-cloud-eventing-framework/) to learn how to register a new webhook handler in HPE GreenLake
330336

0 commit comments

Comments
 (0)