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
I attempted to create the filter order as shown below, but the order ended up reversed. I tested by creating the second filter 2-3 minutes after the first filter, but the later-created filter still appeared in front of the first filter.
[Filter]
Name rewrite_tag
Match kube.*
Rule $kubernetes['namespace_name'] hwapp-ns hwapp_ns_tag true
Emitter_Name hwapp_ns
[Filter]
Name rewrite_tag
Match hwapp_ns_tag
Rule $log (log-pattern) app_log_tag true
Emitter_Name hwapp_log
To Reproduce
created following manifest files and applied one by one
see this order in secret fluent-bit-config fluent-bit.conf
[Filter]
Name rewrite_tag
Match kube.*
Rule $kubernetes['namespace_name'] hwapp-ns hwapp_ns_tag true
Emitter_Name hwapp_ns
[Filter]
Name rewrite_tag
Match hwapp_ns_tag
Rule $log (log-pattern) app_log_tag true
Emitter_Name hwapp_log
Describe the issue
I attempted to create the filter order as shown below, but the order ended up reversed. I tested by creating the second filter 2-3 minutes after the first filter, but the later-created filter still appeared in front of the first filter.
[Filter]
Name rewrite_tag
Match kube.*
Rule $kubernetes['namespace_name'] hwapp-ns hwapp_ns_tag true
Emitter_Name hwapp_ns
[Filter]
Name rewrite_tag
Match hwapp_ns_tag
Rule $log (log-pattern) app_log_tag true
Emitter_Name hwapp_log
To Reproduce
created following manifest files and applied one by one
kind: ClusterFilter
metadata:
name: kubernetes-hwapp-ns
annotations:
meta.helm.sh/release-name: fluent-operator
meta.helm.sh/release-namespace: fluentbit
labels:
app.kubernetes.io/managed-by: Helm
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/component: logging
spec:
match: kube.*
filters:
emitterName: hwapp_ns
rules:
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFilter
metadata:
name: kubernetes-hwapp-log
annotations:
meta.helm.sh/release-name: fluent-operator
meta.helm.sh/release-namespace: fluentbit
labels:
app.kubernetes.io/managed-by: Helm
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/component: logging
spec:
match: hwapp_ns_tag
filters:
emitterName: hwapp_log
rules:
Expected behavior
see this order in secret fluent-bit-config fluent-bit.conf
[Filter]
Name rewrite_tag
Match kube.*
Rule $kubernetes['namespace_name'] hwapp-ns hwapp_ns_tag true
Emitter_Name hwapp_ns
[Filter]
Name rewrite_tag
Match hwapp_ns_tag
Rule $log (log-pattern) app_log_tag true
Emitter_Name hwapp_log
Your Environment
How did you install fluent operator?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: