splunk / docker-logging-plugin

Splunk Connect for Docker is a Docker logging plugin that allows docker containers to send their logs directly to Splunk Enterprise or a Splunk Cloud deployment.
Apache License 2.0
65 stars 25 forks source link

Use HEC health endpoint to verify HEC connection #18

Closed sharonx closed 6 years ago

sharonx commented 6 years ago

Currently we send an Option request to the given --splunk-url. So any url that accepts Option returns true for verifySplunkConnection()

Instead, we should use the dedicated HEC health endpoint: /services/collector/health for verification.