fluent-operator icon indicating copy to clipboard operation
fluent-operator copied to clipboard

help request: How do you specify order of clusterfilter

Open rucciva opened this issue 2 years ago • 4 comments

Describe the issue

In my understanding, the clusterfilters will be merged into one fluent bit configuration files. so how do you make sure the order of that merge, e.g. when you need to have a clusterfilter become the last filter in fluentbit config

How did you install fluent operator?

with YAML applied by argocd & kustomize

Additional context

rucciva avatar Apr 11 '23 08:04 rucciva

I have the same requirement. If I use rewrite_tag, then the order of the filter execution is important and I am not sure how to do that with ClusterFilter

missourian55 avatar Apr 12 '23 02:04 missourian55

It seems the filters are added to the config file in alphabetical order based of the kubernetes name of the ClusterFilter resources.

cloudpea avatar May 10 '23 10:05 cloudpea

Yes, the resources are ordered lexicographically by the resource metadata.name currently.

adiforluls avatar May 12 '23 09:05 adiforluls

it should be documented if this is not a bug. it might be very common requirement for rewrite-tag part.

smallc2009 avatar May 02 '24 22:05 smallc2009