Check Splunk HEC Connectivity


Validate access to Splunk from the StreamWeaver platform machine using curl commands

Step-by-step guide


  1. Set up Splunk HEC and generate a token
  2. Execute the following Curl query, substituting your Splunk environment values
export SPLUNK_HOST=splunk.streamweaver.com
export SPLUNK_PORT=8099
export SPLUNK_TOKEN=39d9b74d-e01a-475d-ba70-be1164681b79


curl -k http://${SPLUNK_HOST}:${SPLUNK_PORT}/services/collector -H "Authorization: Splunk ${SPLUNK_TOKEN}" -d '{"sourcetype": "mysourcetype", "event":"Hello, World!"}'
{"text":"Success","code":0}________________________________________________________________________________```


Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

StreamWeaver 23.1.02