Open alvin1 opened 1 year ago
Can you show the secret fluentbit-config
?
Hi, sorry for the late reply. Here's the content of secret (parsers.conf):
[PARSER]
Name log-parser-99f5fefc6147c28dcfdfad44c44c8105
Format json
Time_Key @timestamp
Time_Format %Y-%m-%dT%H:%M:%S.%f
Time_Keep true
I get same issue with a built-in parser.
apiVersion: fluentbit.fluent.io/v1alpha2
kind: Filter
metadata:
labels:
fluentbit.fluent.io/enabled: "true"
name: filter-app1
namespace: customer1
spec:
match: "*"
filters:
.
.
- parser:
keyName: raw_event
parser: json
.
.
[2024/06/07 14:58:20] [error] [filter:parser:parser.12] Invalid 'parser' [2024/06/07 14:58:20] [error] Failed initialize filter parser.12 [2024/06/07 14:58:20] [error] [engine] filter initialization failed [2024/06/07 14:58:20] [error] [lib] backend failed [2024/06/07 14:58:21] [ info] [input] pausing systemd.0 [2024/06/07 14:58:21] [ info] [input] pausing tail.1 level=error time=2024-06-07T14:58:21Z msg="Fluent bit exited" error="exit status 255"
Describe the issue
We deploy the fluent-operator in the namespace named: "fluent", chart version "2.3.0". The image of fluent-bit is "kubesphere/fluent-bit:v2.1.8". We set the "containerRuntime" to "containerd". Keep other settings as default.
I have another namespace called "test". I created following resources using CRDs:
After I deployed in my namespace, the fluent-bit daemon sets reported following error:
How did you install fluent operator?
We deploy the fluent-operator in the namespace named: "fluent", chart version "2.3.0". The image of fluent-bit is "kubesphere/fluent-bit:v2.1.8". We set the "containerRuntime" to "containerd". Keep other settings as default.
Additional context
I also wondering why the parser name I specificed is "log-parser" but the the parser name in error message have the guid in the name, it even repeated 4 times.
The build-in parsers will disappear when we create any Parser in my own namespace.