However, when checking the logs, I noticed a 401 error:
$ kubectl -n baselime logs baselime-collector-cmqvz -f
Fluent Bit v3.0.3
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
...
[2024/04/30 06:25:23] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
[2024/04/30 06:25:23] [ warn] [engine] failed to flush chunk '1-1714458293.874966719.flb', retry in 8 seconds: task_id=0, input=tail.0 > output=http.0 (out_id=0)
[2024/04/30 06:25:32] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
[2024/04/30 06:25:32] [error] [engine] chunk '1-1714458293.874966719.flb' cannot be retried: task_id=0, input=tail.0 > output=http.0
[2024/04/30 06:25:53] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
[2024/04/30 06:25:53] [ warn] [engine] failed to flush chunk '1-1714458327.412361089.flb', retry in 7 seconds: task_id=0, input=tail.0 > output=http.0 (out_id=0)
[2024/04/30 06:26:00] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
...
Expected Behavior
Fluent Bit should send log data without any errors or authentication issues.
Potential Cause
Upon further investigation, I found that the issue might be caused by an incorrect destination host in the Fluent Bit configuration. In the current fluentbit-configmap.yaml file, the destination host is set to events.baselime.cc
[OUTPUT]
Name http
Host events.baselime.cc
Port 443
URI /v1/logs
Problem Description
I followed this documentation and added my API key to the
custom-values.yaml
file. Then, I installed the Helm chart using the following commands:However, when checking the logs, I noticed a 401 error:
Expected Behavior
Fluent Bit should send log data without any errors or authentication issues.
Potential Cause
Upon further investigation, I found that the issue might be caused by an incorrect destination host in the Fluent Bit configuration. In the current
fluentbit-configmap.yaml
file, the destination host is set toevents.baselime.cc
https://github.com/baselime/helm-charts/blob/main/charts/baselime-logs-exporter/templates/fluentbit-configmap.yaml#L33
However, according to this documentation, the correct destination host should be
events.baselime.io
Temporary Workaround
I applied the manifest with the modified
Host
usinghelm template
and it worked.