GELF

GELF Output

Overview

Fluentd output plugin for GELF. For details, see https://github.com/bmichalkiewicz/fluent-plugin-gelf-best.

Example

spec:
  gelf:
    host: gelf-host
    port: 12201

Configuration

Output Config

buffer (*Buffer, optional) {#output config-buffer}

Available since ghcr.io/kube-logging/fluentd:v1.16-full-build.139 Buffer

host (string, required) {#output config-host}

Destination host

max_bytes (int, optional) {#output config-max_bytes}

MaxBytes specifies the maximum size, in bytes, of each individual log message. For details, see https://github.com/Graylog2/graylog2-server/issues/873 Available since ghcr.io/kube-logging/fluentd:v1.16-4.10-full

Default: 3200

port (int, required)

Destination host port

protocol (string, optional)

Transport Protocol

Default: “udp”

tls (*bool, optional)

Enable TlS

Default: false

tls_options (map[string]string, optional)

TLS Options. For details, see https://github.com/graylog-labs/gelf-rb/blob/72916932b789f7a6768c3cdd6ab69a3c942dbcef/lib/gelf/transport/tcp_tls.rb#L7-L12.

Default: {}

udp_transport_type (string, optional)

Available in Logging operator version 5.3 and later.

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 Available since ghcr.io/kube-logging/logging-operator/fluentd:5.3.0-full

Default: WAN

Example GELF output configurations

apiVersion: logging.banzaicloud.io/v1beta1
kind: Output
metadata:
  name: gelf-output-sample
spec:
  gelf:
    host: gelf-host
    port: 12201

Fluentd config result:

<match **>
	@type gelf
	@id test_gelf
	host gelf-host
	port 12201
</match>