Skip to content

Fluentbit crashing with YAML config format #10084

Open
@JohnnyAuxier

Description

@JohnnyAuxier

Bug Report

Describe the bug
Fluent-operator Helm Chart 3.3.0 is unable to process YAML configuration, when the only change to values file is:

configFileFormat: yaml

Seems to be affected by any Fluentbit YAML configuration that contain lists.

To Reproduce
Helm install fluentbit

  • helm -n fluent-operator install fluent-operator fluent-operator
[2025/03/14 18:43:59] [error] [config] YAML error found in file "/fluent-bit/config/ fluent-bit.yaml", line 4, column 4: unexpected event 'sequence-start-event' (7) in state 'section-value' (5).                                                           
[2025/03/14 18:43:59] [error] yaml error                                            
[2025/03/14 18:43:59] [error] [config] including file '/fluent-bit/config/fluent-bit.yaml' at /fluent-bit/etc/fluent-bit.yaml:2                                         
[2025/03/14 18:43:59] [error] yaml error                                            
[2025/03/14 18:43:59] [error] configuration file contains errors, aborting.   
level=error time=2025-03-14T18:43:59Z msg="Failure during the run time of fluent-bit" error="failed to run fluent-bit: exit status 1"       

Expected behavior
Expecting Fluent-operator and Fluentbit CR to operate with YAML configuration.

Screenshots

Image

Your Environment

  • Version used: 3.3.0
  • Configuration: "configFileFormat: yaml"
  • Environment name and version (e.g. Kubernetes? What version?): v1.30.9-eks-8cce635

Additional context
My team has a requirement to send logs using fluent-bit from one k8s cluster to an OpenTelemetry collector located in a monitoring k8s cluster. We need to use the opentelemetry_envelope and content_modifier processor to add attributes such as service.name to logs. The use of these processors can only be achieved with Fluentbit using YAML format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions