We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everyone,
Using the namespaced CRs to deploy specific FluentBit configuration deploys the dynamic Filter similar to below.
[Filter] Name rewrite_tag Match kube.* Rule $kubernetes['namespace_name'] ^(test)$ 5236c06addf811b0eaf2fabbd31c89f2.$TAG false
This doesn't work in case you have syslog configured as an output, and need to list the nested objects. Check out this issue for more information.
Looking at the code, we found the below line to be hard-coded.
buf.WriteString(fmt.Sprintf(" Rule $kubernetes['namespace_name'] ^(%s)$ %x.$TAG false\n", cfg.Namespace, md5.Sum([]byte(cfg.Namespace))))
Source
This setting causes the rewrite_tag filter not to work properly.
rewrite_tag
Some possible solution would be somewhat similar to the one used in this PR.
For example:
apiVersion: fluentbit.fluent.io/v1alpha2 kind: FluentBitConfig metadata: name: fluent-bit-config labels: app.kubernetes.io/name: fluent-bit spec: filterSelector: matchLabels: fluentbit.fluent.io/enabled: "true" outputSelector: matchLabels: fluentbit.fluent.io/enabled: "true" parserSelector: matchLabels: fluentbit.fluent.io/enabled: "true" service: emitterRuleKey: "kubernetes_namespace_name"
Would generate to the below filter.
[Filter] Name rewrite_tag Match kube.* Rule $kubernetes_namespace_name ^(test)$ 5236c06addf811b0eaf2fabbd31c89f2.$TAG false Emitter_Name test
Some useful links:
Thanks, Marjan
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Yes, read below.
Hi everyone,
Using the namespaced CRs to deploy specific FluentBit configuration deploys the dynamic Filter similar to below.
This doesn't work in case you have syslog configured as an output, and need to list the nested objects. Check out this issue for more information.
Looking at the code, we found the below line to be hard-coded.
Source
This setting causes the
rewrite_tag
filter not to work properly.Describe the solution you'd like
Some possible solution would be somewhat similar to the one used in this PR.
For example:
Would generate to the below filter.
Additional context
Some useful links:
Thanks,
Marjan
The text was updated successfully, but these errors were encountered: