Skip to content

Commit baf2f38

Browse files
authored
Merge pull request #1988 from bmichalkiewicz/gelf
chart: add udp_transport_type for gelf output plugin
2 parents 2a918e0 + dc94b9f commit baf2f38

File tree

10 files changed

+48
-7
lines changed

10 files changed

+48
-7
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

images/fluentd/outputs/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gem 'fluent-plugin-remote-syslog', '1.1.0'
1818
gem 'fluent-plugin-webhdfs', '1.6.0'
1919
gem 'fluent-plugin-vmware-loginsight', '1.4.2'
2020
gem 'fluent-plugin-vmware-log-intelligence', '2.0.8'
21-
gem 'fluent-plugin-gelf-best', '1.3.4'
21+
gem 'fluent-plugin-gelf-best', '1.4.1'
2222
gem 'fluent-plugin-s3', '1.8.3'
2323
gem 'fluent-plugin-gcs', '0.4.4'
2424
gem 'rdkafka', '0.21.0'

images/fluentd/outputs/Gemfile.lock

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ GEM
109109
fluent-plugin-gcs (0.4.4)
110110
fluentd (>= 0.14.22, < 2)
111111
google-cloud-storage (~> 1.1)
112-
fluent-plugin-gelf-best (1.3.4)
113-
fluentd (>= 1.0.0)
114-
gelf (>= 3.1.0)
112+
fluent-plugin-gelf-best (1.4.1)
113+
fluentd (>= 1.8.0)
114+
gelf_redux (>= 4.1.0)
115+
oj
115116
fluent-plugin-grafana-loki (1.2.20)
116117
fluentd (>= 1.9.3, < 2)
117118
fluent-plugin-kafka (0.19.3)
@@ -191,7 +192,7 @@ GEM
191192
tzinfo-data (~> 1.0)
192193
webrick (~> 1.4)
193194
yajl-ruby (~> 1.0)
194-
gelf (3.1.0)
195+
gelf_redux (4.1.0)
195196
json
196197
google-apis-core (0.15.1)
197198
addressable (~> 2.5, >= 2.5.1)
@@ -242,7 +243,7 @@ GEM
242243
i18n (1.14.4)
243244
concurrent-ruby (~> 1.0)
244245
jmespath (1.6.2)
245-
json (2.6.3)
246+
json (2.10.2)
246247
json-jwt (1.15.3.1)
247248
activesupport (>= 4.2)
248249
aes_key_wrap
@@ -285,6 +286,9 @@ GEM
285286
nokogiri (1.18.4)
286287
mini_portile2 (~> 2.8.2)
287288
racc (~> 1.4)
289+
oj (3.16.10)
290+
bigdecimal (>= 3.0)
291+
ostruct (>= 0.2)
288292
openid_connect (1.1.8)
289293
activemodel
290294
attr_required (>= 1.0.0)
@@ -299,6 +303,7 @@ GEM
299303
faraday (>= 1.0, < 3)
300304
multi_json (>= 1.0)
301305
os (1.1.4)
306+
ostruct (0.6.1)
302307
prometheus-client (4.2.1)
303308
public_suffix (5.0.3)
304309
racc (1.8.1)
@@ -378,7 +383,7 @@ DEPENDENCIES
378383
fluent-plugin-datadog (= 0.14.4)
379384
fluent-plugin-elasticsearch (= 5.4.3)
380385
fluent-plugin-gcs (= 0.4.4)
381-
fluent-plugin-gelf-best (= 1.3.4)
386+
fluent-plugin-gelf-best (= 1.4.1)
382387
fluent-plugin-grafana-loki (= 1.2.20)
383388
fluent-plugin-kafka (= 0.19.3)
384389
fluent-plugin-kinesis (= 3.5.0)

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)