I have a token set up in http event collector and try to do a curl command to test if it works. I read the instruction from this site http://dev.splunk.com/view/event-collector/SP-CAAAE7F which indicated that I could do a curl command to send data to the http event collector.
This is the command that I use: curl -k https://:8088/services/collector -H 'Authorization: Splunk ' -d '{"event":"Hello, World!"}'.
But the result I got from it was:
{"text":"Token is required","code":2}curl: (7) Failed to connect to Splunk port 80: Connection refused
curl: (6) Could not resolve host: B86C5445-76D4-4FAF-A0FA-D8FE2FA49F79'
Does this mean the http event doesn't work? What can I do to resolve the issue?
↧