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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...