- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a212830
Champion
08-29-2016
05:38 PM
Hi,
I was able to get the HEC up and running on a HFW, but now when I submit an event, I get "token is required", even though I'm passing a token.
curl -k https://myserver.com:8088/services/collector/event -H "Authorization Splunk: 7E36213E-03E1-4246-93B9-81931D303A58" -d '{"event": "hello world"}'
Anyone run into this?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a212830
Champion
08-29-2016
07:35 PM
Never mind: got it:
curl -k https://myserver.com:8088/services/collector/event -H 'Authorization: Splunk 7E36213E-03E1-4246-93B9-81931D303A58' -d '{"event": "hello world2"}'
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a212830
Champion
08-29-2016
07:35 PM
Never mind: got it:
curl -k https://myserver.com:8088/services/collector/event -H 'Authorization: Splunk 7E36213E-03E1-4246-93B9-81931D303A58' -d '{"event": "hello world2"}'
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

sloshburch

Splunk Employee
08-30-2016
05:20 AM
Converted your post to answer so you can mark it as accepted.
For other folks who run into the same thing, was the issue just that the header is Authorization
not Authorization Splunk
and therefore once you moved the :
after Authorization
it all worked?
