Skip to content

[exporter/splunk_hec] Support Basic-Auth token authentication #14584

Closed
@atoulme

Description

Is your feature request related to a problem? Please describe.

The HEC receiver also supports reading the token through Basic Auth.

You can use any username (even none) with the token as the password, and it'll work! Especially handy in environments where you can't add a custom header, but where basic auth is supported. A curl one-line example:

curl "https://:tokenhere@splunkindexer:8088/services/collector/event" -d '{"event":"it worked!"}'

Describe the solution you'd like

We should support this for the receiver and exporter of HEC in OpenTelemetry as an alternative to the default Authorization header.

Describe alternatives you've considered

N/A

Additional context

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions