Skip to content
New issue

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

configure emitter parameters from filter rewriteTag #1092

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrono2002
Copy link

Ability to set emitter parameters from filter rewriteTag.
In addition to clusterfilter-only #1069

None
apiVersion: fluentbit.fluent.io/v1alpha2
kind: Filter
metadata:
  labels:
    fluentbit.fluent.io/enabled: "true"
  name: filter
  namespace: namespace
spec:
  match: kube.*
  filters:
  - rewriteTag:
      emitterName: rewrite
      emitterStorageType: filesystem
      emitterMemBufLimit: 8MB
      rules:
      - $flow_tag msg $TAG[0].msg false

@antrema
Copy link
Collaborator

antrema commented Apr 4, 2024

@chrono2002 you didn't use the make manifests to generate the CRDs, so your modifications will be deleted each time the make manifests command will be played

@benjaminhuo
Copy link
Member

@chrono2002 you didn't use the make manifests to generate the CRDs, so your modifications will be deleted each time the make manifests command will be played

Yeah, @chrono2002 you'll need to change the go struct definition first and the crd yamls are generated automatically by running:

make manifests
make generate
make fmt 
make vet
make docs-update

Here're some examples:
#1018
#972

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants