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 Splunk Enterprise 9.2

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...