Skip to content

Commit 8bb0d17

Browse files
committed
feat: add compress field to forward output
Signed-off-by: Cyril Corbon <[email protected]>
1 parent f1f6263 commit 8bb0d17

File tree

8 files changed

+31
-0
lines changed

8 files changed

+31
-0
lines changed

charts/logging-operator/charts/logging-operator-crds/templates/logging.banzaicloud.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,8 @@ spec:
20972097
type:
20982098
type: string
20992099
type: object
2100+
compress:
2101+
type: string
21002102
connect_timeout:
21012103
type: integer
21022104
dns_round_robin:
@@ -9546,6 +9548,8 @@ spec:
95469548
type:
95479549
type: string
95489550
type: object
9551+
compress:
9552+
type: string
95499553
connect_timeout:
95509554
type: integer
95519555
dns_round_robin:

charts/logging-operator/charts/logging-operator-crds/templates/logging.banzaicloud.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,8 @@ spec:
20972097
type:
20982098
type: string
20992099
type: object
2100+
compress:
2101+
type: string
21002102
connect_timeout:
21012103
type: integer
21022104
dns_round_robin:
@@ -8824,6 +8826,8 @@ spec:
88248826
type:
88258827
type: string
88268828
type: object
8829+
compress:
8830+
type: string
88278831
connect_timeout:
88288832
type: integer
88298833
dns_round_robin:

charts/logging-operator/crds/logging.banzaicloud.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,8 @@ spec:
20942094
type:
20952095
type: string
20962096
type: object
2097+
compress:
2098+
type: string
20972099
connect_timeout:
20982100
type: integer
20992101
dns_round_robin:
@@ -9543,6 +9545,8 @@ spec:
95439545
type:
95449546
type: string
95459547
type: object
9548+
compress:
9549+
type: string
95469550
connect_timeout:
95479551
type: integer
95489552
dns_round_robin:

charts/logging-operator/crds/logging.banzaicloud.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,8 @@ spec:
20942094
type:
20952095
type: string
20962096
type: object
2097+
compress:
2098+
type: string
20972099
connect_timeout:
20982100
type: integer
20992101
dns_round_robin:
@@ -8821,6 +8823,8 @@ spec:
88218823
type:
88228824
type: string
88238825
type: object
8826+
compress:
8827+
type: string
88248828
connect_timeout:
88258829
type: integer
88268830
dns_round_robin:

config/crd/bases/logging.banzaicloud.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,8 @@ spec:
20942094
type:
20952095
type: string
20962096
type: object
2097+
compress:
2098+
type: string
20972099
connect_timeout:
20982100
type: integer
20992101
dns_round_robin:
@@ -9543,6 +9545,8 @@ spec:
95439545
type:
95449546
type: string
95459547
type: object
9548+
compress:
9549+
type: string
95469550
connect_timeout:
95479551
type: integer
95489552
dns_round_robin:

config/crd/bases/logging.banzaicloud.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,8 @@ spec:
20942094
type:
20952095
type: string
20962096
type: object
2097+
compress:
2098+
type: string
20972099
connect_timeout:
20982100
type: integer
20992101
dns_round_robin:
@@ -8821,6 +8823,8 @@ spec:
88218823
type:
88228824
type: string
88238825
type: object
8826+
compress:
8827+
type: string
88248828
connect_timeout:
88258829
type: integer
88268830
dns_round_robin:

docs/configuration/plugins/outputs/forward.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Default: 190
1717
[Buffer](../buffer/)
1818

1919

20+
### compress (string, optional) {#forwardoutput-compress}
21+
22+
Fluentd supports transparent data compression, the only value accepted is "gzip"
23+
24+
2025
### connect_timeout (int, optional) {#forwardoutput-connect_timeout}
2126

2227
The timeout time for socket connect. When the connection timed out during establishment, Errno::ETIMEDOUT is raised.

pkg/sdk/logging/model/output/forward.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ type ForwardOutput struct {
3838
FluentdServers []FluentdServer `json:"servers"`
3939
// The transport protocol to use [ tcp, tls ]
4040
Transport string `json:"transport,omitempty"`
41+
// Fluentd supports transparent data compression, the only value accepted is "gzip"
42+
Compress string `json:"compress,omitempty"`
4143
// Change the protocol to at-least-once. The plugin waits the ack from destination's in_forward plugin.
4244
RequireAckResponse bool `json:"require_ack_response,omitempty"`
4345
// This option is used when require_ack_response is true. This default value is based on popular tcp_syn_retries. (default: 190)

0 commit comments

Comments
 (0)