Skip to content

Commit e695e85

Browse files
committed
Update Blog “integrating-hpe-greenlake-webhooks-with-splunk”
1 parent 77b1cba commit e695e85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You can install and configure the endpoint handler directly on your Splunk Enter
107107

108108
[Splunk Cloud has extra security controls](https://docs.splunk.com/Documentation/SplunkCloud/latest/RESTTUT/RESTandCloud), so you might need to take additional steps to allow your helper to communicate with the Splunk REST API.
109109

110-
## Generate an Splunk REST API key
110+
## Generate an Splunk REST API key
111111

112112
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 initially setting up the webhook and sending events. You can use the following cURL command to generate a key.
113113

@@ -119,14 +119,15 @@ curl -k https://your-splunk-instance:8089/services/auth/login \
119119
120120
The response will be:
121121
122-
```
122+
```json
123123
<response>
124124
<sessionKey>YOUR_SESSION_KEY</sessionKey>
125125
<messages>
126126
<msg code=""></msg>
127127
</messages>
128128
</response>
129129
```
130+
130131
## Sample Python handler
131132
132133
Let's create a custom REST endpoint handler in Python to handle the HPE GreenLake webhook validation and forwards events to Splunk HEC, once validated.

0 commit comments

Comments
 (0)