Skip to content

Commit 164dff9

Browse files
chart: add udp_transport_type for gelf output plugin
Signed-off-by: Bartosz Michałkiewicz <[email protected]>
1 parent 2a918e0 commit 164dff9

File tree

8 files changed

+36
-0
lines changed

8 files changed

+36
-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
@@ -2696,6 +2696,8 @@ spec:
26962696
additionalProperties:
26972697
type: string
26982698
type: object
2699+
udp_transport_type:
2700+
type: string
26992701
required:
27002702
- host
27012703
- port
@@ -10139,6 +10141,8 @@ spec:
1013910141
additionalProperties:
1014010142
type: string
1014110143
type: object
10144+
udp_transport_type:
10145+
type: string
1014210146
required:
1014310147
- host
1014410148
- port

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
@@ -2696,6 +2696,8 @@ spec:
26962696
additionalProperties:
26972697
type: string
26982698
type: object
2699+
udp_transport_type:
2700+
type: string
26992701
required:
27002702
- host
27012703
- port
@@ -9417,6 +9419,8 @@ spec:
94179419
additionalProperties:
94189420
type: string
94199421
type: object
9422+
udp_transport_type:
9423+
type: string
94209424
required:
94219425
- host
94229426
- port

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,8 @@ spec:
26932693
additionalProperties:
26942694
type: string
26952695
type: object
2696+
udp_transport_type:
2697+
type: string
26962698
required:
26972699
- host
26982700
- port
@@ -10136,6 +10138,8 @@ spec:
1013610138
additionalProperties:
1013710139
type: string
1013810140
type: object
10141+
udp_transport_type:
10142+
type: string
1013910143
required:
1014010144
- host
1014110145
- port

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,8 @@ spec:
26932693
additionalProperties:
26942694
type: string
26952695
type: object
2696+
udp_transport_type:
2697+
type: string
26962698
required:
26972699
- host
26982700
- port
@@ -9414,6 +9416,8 @@ spec:
94149416
additionalProperties:
94159417
type: string
94169418
type: object
9419+
udp_transport_type:
9420+
type: string
94179421
required:
94189422
- host
94199423
- port

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,8 @@ spec:
26932693
additionalProperties:
26942694
type: string
26952695
type: object
2696+
udp_transport_type:
2697+
type: string
26962698
required:
26972699
- host
26982700
- port
@@ -10136,6 +10138,8 @@ spec:
1013610138
additionalProperties:
1013710139
type: string
1013810140
type: object
10141+
udp_transport_type:
10142+
type: string
1013910143
required:
1014010144
- host
1014110145
- port

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,8 @@ spec:
26932693
additionalProperties:
26942694
type: string
26952695
type: object
2696+
udp_transport_type:
2697+
type: string
26962698
required:
26972699
- host
26982700
- port
@@ -9414,6 +9416,8 @@ spec:
94149416
additionalProperties:
94159417
type: string
94169418
type: object
9419+
udp_transport_type:
9420+
type: string
94179421
required:
94189422
- host
94199423
- port

docs/configuration/plugins/outputs/gelf.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,10 @@ TLS Options. For details, see [https://github.com/graylog-labs/gelf-rb/blob/7291
6060
6161
Default: {}
6262
63+
### udp_transport_type (string, optional) {#output config-udp_transport_type}
64+
65+
UdpTransportType specifies the UDP chunk size by choosing either WAN or LAN mode. The choice between WAN and LAN affects the UDP chunk size depending on whether you are sending logs within your local network (LAN) or over a longer route (e.g., through the internet). Set this option accordingly. For more details, see: [https://github.com/manet-marketing/gelf_redux/blob/9db64353b6672805152c17642ea8ad39eafb5875/lib/gelf/notifier.rb#L22](https://github.com/manet-marketing/gelf_redux/blob/9db64353b6672805152c17642ea8ad39eafb5875/lib/gelf/notifier.rb#L22) Available since ghcr.io/kube-logging/logging-operator/fluentd:5.3.0-full
66+
67+
Default: WAN
68+
6369

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ type GelfOutputConfig struct {
6363
// For details, see [https://github.com/Graylog2/graylog2-server/issues/873](https://github.com/Graylog2/graylog2-server/issues/873)
6464
// Available since ghcr.io/kube-logging/fluentd:v1.16-4.10-full (default: 3200)
6565
MaxBytes int `json:"max_bytes,omitempty"`
66+
// UdpTransportType specifies the UDP chunk size by choosing either WAN or LAN mode.
67+
// The choice between WAN and LAN affects the UDP chunk size depending on whether you are sending logs within your local network (LAN) or over a longer route (e.g., through the internet). Set this option accordingly.
68+
// For more details, see:
69+
// [https://github.com/manet-marketing/gelf_redux/blob/9db64353b6672805152c17642ea8ad39eafb5875/lib/gelf/notifier.rb#L22](https://github.com/manet-marketing/gelf_redux/blob/9db64353b6672805152c17642ea8ad39eafb5875/lib/gelf/notifier.rb#L22)
70+
// Available since ghcr.io/kube-logging/logging-operator/fluentd:5.3.0-full (default: WAN)
71+
UdpTransportType string `json:"udp_transport_type,omitempty"`
6672
// Available since ghcr.io/kube-logging/fluentd:v1.16-4.8-full
6773
// +docLink:"Buffer,../buffer/"
6874
Buffer *Buffer `json:"buffer,omitempty"`

0 commit comments

Comments
 (0)