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

Add feature to add multilineParser in helm chart, when enable kubernetes: true

Open allanian opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Hello, I'm getting some logs in json log format and its not parsed.

my values.yaml for helm chart

        containerRuntime: containerd
        Kubernetes: true
        fluentbit:
          crdsEnable: true
          enable: true
          image:
            repository: "kubesphere/fluent-bit"
            tag: "v2.1.2"
          input:
            tail:
              enable: true
              refreshIntervalSeconds: 10
              memBufLimit: 5MB
              path: "/var/log/containers/*.log"
              skipLongLines: true

Describe the solution you'd like

can we add 1 option to helm chart, when it defined, like

fluentbit.input.tail.multilineParser: docker, cri

Additional context

No response

allanian avatar May 13 '23 07:05 allanian

@wenchajun as I can remember users can simply set containerRuntime: containerd and then the (contained) container logs will be parsed properly because there is a custom filter for contained https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/values.yaml#L205 right?

benjaminhuo avatar May 28 '23 07:05 benjaminhuo