Getting Data In

HEC Basic Authentication

kpwaterson
Explorer

I am attempting to use an HEC with basic authentication via HTTPS, but receiving a response 403 "Forbidden" when using the authorization header as Base64 encoded username:password pair. 

The username:HEC token works as is hinted in the documentation, so my question is whether there is any way to use a user's password for authentication, or a session key from a login request, when posting data to an HEC.  

If not, are there any endpoints that will return a response on an HTTP request?

Thanks in advance for any advice you can give.

 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Based on the documentation showing authentication only using a HEC token, I infer it is not possible to use a username and password to authenticate.  One must use a token.

Consider submitting feedback on the documentation if you would like that clarified.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

PickleRick
SplunkTrust
SplunkTrust

You must provide the token in order for HEC to work (you can many different inputs at the same API endpoint distinguished by unique token), so the token is necessary. Maybe (I haven't tested) you can _also_ provide basic auth but it seems pointless.

richgalloway
SplunkTrust
SplunkTrust

Based on the documentation showing authentication only using a HEC token, I infer it is not possible to use a username and password to authenticate.  One must use a token.

Consider submitting feedback on the documentation if you would like that clarified.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...