Skip to content

feat(fluentbit): add compress option to the forward output - #2083

Open
cvas22 wants to merge 2 commits into
fluent:masterfrom
cvas22:feat/1492-forward-compress
Open

cvas22 wants to merge 2 commits into
fluent:masterfrom
cvas22:feat/1492-forward-compress

Conversation

@cvas22

@cvas22 cvas22 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Adds an optional compress field to the Fluent Bit forward output (ClusterOutput and Output). It's rendered as Fluent Bit's Compress option, so data sent to Fluentd or another Fluent Bit can be gzip-compressed. The field is validated as an enum with the one value Fluent Bit supports, gzip. The description carries the limits from the Fluent Bit docs: it's incompatible with timeAsInteger: true and with tags set by the Rewrite Tag filter, and it needs Fluentd v0.14.7 or later.

When the field isn't set nothing is rendered, so existing configs are unchanged.

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
  name: fluentd
spec:
  match: "*"
  forward:
    host: fluentd.logging.svc
    port: 24224
    compress: gzip

Which issue(s) this PR fixes:

Fixes #1492

Does this PR introduced a user-facing change?

The Fluent Bit forward output supports the compress option (gzip).

Notes

#1493 added this earlier but was closed for inactivity after DCO problems, so I picked it up.

This time I ran the generators instead of editing generated files by hand: make generate manifests docs-update, in WSL with controller-gen v0.18.0 from the Makefile. That updated only the outputs CRDs (config, both charts, manifests/setup/setup.yaml) and docs/plugins/fluentbit/output/forward.md.

Tested locally: go test ./apis/... passes, including the new TestOutput_Forward_Params cases (with and without compress), and make lint reports 0 issues.

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
…ption

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
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.

bug: Compress option is not supported in fluentbit Output Forward plugin

1 participant