splunk / azure-functions-splunk

Azure Functions for getting data in to Splunk
Apache License 2.0
30 stars 31 forks source link

How to bypass certificate check #5

Open mshensg opened 2 years ago

mshensg commented 2 years ago

need to bypass the HTTP Event Collect HTTPS certificate check as we are using self signed by it will rejected by axios. thanks.

kclifford20 commented 2 years ago

Not sure if you've fixed your issue yet, however try the below URL for your HEC URL (Not the dash not dot between http-inputs and customertenant to fix the SSL certificate issue) https://http-inputs-__customertenant__.splunkcloud.com/services/collector/event

mshensg commented 2 years ago

I think that one is secured by a wildcard cert instead of self-sign cert (on-prem Splunk BYOL). The source code simply call axios without setting an https agent with rejectUnauthorized = false. So maybe the developer team needs to add such feature so the data can be sent to a non-Splunk cloud environment.