splunk Server
Creates a SendString function that sends an event string to a Splunk server using the HTTP Event Collector (HEC) API.
Return
A function that takes a string event and asynchronously sends it to the Splunk server.
Parameters
hec Url
The URL of the Splunk HEC endpoint.
hec Token
The token used for authentication with the Splunk HEC.
check Certificate
Specifies whether to check the SSL certificate when making the HTTP request. Defaults to true.