Skip to content

Conversation

chrono2002
Copy link
Contributor

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