You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
fluent-bit 3.0.3 upgrade has broken Splunk output plugin when event_sourcetype_key attribute is specified. It sends a wrong Authorization header to Splunk causing it to respond with an HTTP 401 error. It now sends Authorization: hec_token which should be Authorization: Splunk db496524-e7e6-4ae9-b3f0-2287d8e65cd4 where db496524-e7e6-4ae9-b3f0-2287d8e65cd4 is a HEC token.
POST /services/collector/event HTTP/1.1
Host: 127.0.0.1:8081
Content-Length: 242
User-Agent: Fluent-Bit
Authorization: hec_token
Connection: keep-alive
{"time":1714604689.81654,"sourcetype":"sourcetype","event":{"log":"log line 1"}}{"time":1714604689.816549,"sourcetype":"sourcetype","event":{"log":"log line 2"}}{"time":1714604689.816551,"sourcetype":"sourcetype","event":{"log":"log line 3"}}
Expected behavior
Running the same steps with fluent-bit 3.0.2 docker image sends correct authorization header.
POST /services/collector/event HTTP/1.1
Host: 127.0.0.1:8081
Content-Length: 243
User-Agent: Fluent-Bit
Authorization: Splunk db496524-e7e6-4ae9-b3f0-2287d8e65cd4
Connection: keep-alive
{"time":1714604726.505695,"sourcetype":"sourcetype","event":{"log":"log line 1"}}{"time":1714604726.505703,"sourcetype":"sourcetype","event":{"log":"log line 2"}}{"time":1714604726.505704,"sourcetype":"sourcetype","event":{"log":"log line 3"}}
Your Environment
Version used: 3.0.3
Configuration:
[INPUT]
Name tail
Path /sample.log
Read_From_Head On
[OUTPUT]
Name splunk
Match *
Port 8081
Splunk_Token db496524-e7e6-4ae9-b3f0-2287d8e65cd4
event_sourcetype_key sourcetype
Environment name and version (e.g. Kubernetes? What version?): EKS 1.27
Server type and version: NA
Operating System and version: Amazon Linux 2023
Filters and plugins: tail, splunk
The text was updated successfully, but these errors were encountered:
Facing a very similar issue here. After some digging I found #8738 which might have caused this issue. Although I am not sure how to use the newly introduced event format correctly.
Hi @nirnanaaa I have created a PR to fix the issue. Would you be able to test the PR for your scenario. All inputs are welcome.
mannbiher
changed the title
fluent-bit 3.0.3 upgrade has broken splunk output plugin
fluent-bit 3.0.3 upgrade has broken splunk output plugin when event_sourcetype_key is specified
May 4, 2024
Bug Report
Describe the bug
fluent-bit 3.0.3 upgrade has broken Splunk output plugin when
event_sourcetype_key
attribute is specified. It sends a wrong Authorization header to Splunk causing it to respond with an HTTP 401 error. It now sendsAuthorization: hec_token
which should beAuthorization: Splunk db496524-e7e6-4ae9-b3f0-2287d8e65cd4
wheredb496524-e7e6-4ae9-b3f0-2287d8e65cd4
is a HEC token.To Reproduce
On Linux
[http_client] broken connection to 127.0.0.1:8081 ?
error. As we are using nc the broken connection is expected.Expected behavior
Running the same steps with fluent-bit 3.0.2 docker image sends correct authorization header.
Your Environment
The text was updated successfully, but these errors were encountered: