Fluentd
1.0
1.0
  • Introduction
  • Overview
    • Life of a Fluentd event
    • Support
    • FAQ
    • Logo
    • fluent-package v5 vs td-agent v4
  • Installation
    • Before Installation
    • Install fluent-package
      • RPM Package (Red Hat Linux)
      • DEB Package (Debian/Ubuntu)
      • .dmg Package (macOS)
      • .msi Installer (Windows)
    • Install calyptia-fluentd
      • RPM Package (Red Hat Linux)
      • DEB Package (Debian/Ubuntu)
      • .dmg Package (macOS)
      • .msi Installer (Windows)
    • Install by Ruby Gem
    • Install from Source
    • Post Installation Guide
    • Obsolete Installation
      • Treasure Agent v4 (EOL) Installation
        • Install by RPM Package v4 (Red Hat Linux)
        • Install by DEB Package v4 (Debian/Ubuntu)
        • Install by .dmg Package v4 (macOS)
        • Install by .msi Installer v4 (Windows)
      • Treasure Agent v3 (EOL) Installation
        • Install by RPM Package v3 (Red Hat Linux)
        • Install by DEB Package v3 (Debian/Ubuntu)
        • Install by .dmg Package v3 (macOS)
        • Install by .msi Installer v3 (Windows)
  • Configuration
    • Config File Syntax
    • Config File Syntax (YAML)
    • Routing Examples
    • Config: Common Parameters
    • Config: Parse Section
    • Config: Buffer Section
    • Config: Format Section
    • Config: Extract Section
    • Config: Inject Section
    • Config: Transport Section
    • Config: Storage Section
    • Config: Service Discovery Section
  • Deployment
    • System Configuration
    • Logging
    • Signals
    • RPC
    • High Availability Config
    • Performance Tuning
    • Multi Process Workers
    • Failure Scenarios
    • Plugin Management
    • Trouble Shooting
    • Fluentd UI
    • Linux Capability
    • Command Line Option
    • Source Only Mode
    • Zero-downtime restart
  • Container Deployment
    • Docker Image
    • Docker Logging Driver
    • Docker Compose
    • Kubernetes
  • Monitoring Fluentd
    • Overview
    • Monitoring by Prometheus
    • Monitoring by REST API
  • Input Plugins
    • tail
    • forward
    • udp
    • tcp
    • unix
    • http
    • syslog
    • exec
    • sample
    • monitor_agent
    • windows_eventlog
  • Output Plugins
    • file
    • forward
    • http
    • exec
    • exec_filter
    • secondary_file
    • copy
    • relabel
    • roundrobin
    • stdout
    • null
    • s3
    • kafka
    • elasticsearch
    • opensearch
    • mongo
    • mongo_replset
    • rewrite_tag_filter
    • webhdfs
    • buffer
  • Filter Plugins
    • record_transformer
    • grep
    • parser
    • geoip
    • stdout
  • Parser Plugins
    • regexp
    • apache2
    • apache_error
    • nginx
    • syslog
    • ltsv
    • csv
    • tsv
    • json
    • msgpack
    • multiline
    • none
  • Formatter Plugins
    • out_file
    • json
    • ltsv
    • csv
    • msgpack
    • hash
    • single_value
    • stdout
    • tsv
  • Buffer Plugins
    • memory
    • file
    • file_single
  • Storage Plugins
    • local
  • Service Discovery Plugins
    • static
    • file
    • srv
  • Metrics Plugins
    • local
  • How-to Guides
    • Stream Analytics with Materialize
    • Send Apache Logs to S3
    • Send Apache Logs to Minio
    • Send Apache Logs to Mongodb
    • Send Syslog Data to Graylog
    • Send Syslog Data to InfluxDB
    • Send Syslog Data to Sematext
    • Data Analytics with Treasure Data
    • Data Collection with Hadoop (HDFS)
    • Simple Stream Processing with Fluentd
    • Stream Processing with Norikra
    • Stream Processing with Kinesis
    • Free Alternative To Splunk
    • Email Alerting like Splunk
    • How to Parse Syslog Messages
    • Cloud Data Logging with Raspberry Pi
  • Language Bindings
    • Java
    • Ruby
    • Python
    • Perl
    • PHP
    • Nodejs
    • Scala
  • Plugin Development
    • How to Write Input Plugin
    • How to Write Base Plugin
    • How to Write Buffer Plugin
    • How to Write Filter Plugin
    • How to Write Formatter Plugin
    • How to Write Output Plugin
    • How to Write Parser Plugin
    • How to Write Storage Plugin
    • How to Write Service Discovery Plugin
    • How to Write Tests for Plugin
    • Configuration Parameter Types
    • Upgrade Plugin from v0.12
  • Plugin Helper API
    • Plugin Helper: Child Process
    • Plugin Helper: Compat Parameters
    • Plugin Helper: Event Emitter
    • Plugin Helper: Event Loop
    • Plugin Helper: Extract
    • Plugin Helper: Formatter
    • Plugin Helper: Inject
    • Plugin Helper: Parser
    • Plugin Helper: Record Accessor
    • Plugin Helper: Server
    • Plugin Helper: Socket
    • Plugin Helper: Storage
    • Plugin Helper: Thread
    • Plugin Helper: Timer
    • Plugin Helper: Http Server
    • Plugin Helper: Service Discovery
  • Troubleshooting Guide
  • Appendix
    • Update from v0.12 to v1
    • td-agent v2 vs v3 vs v4
Powered by GitBook
On this page
  • Transport Section Overview
  • Parameters
  • Protocol
  • General Setting
  • TLS Setting
  • Signed Public CA Parameters
  • Generated and Signed by Private CA Parameters
  • Generated and Signed by Private CA Certs or Self-signed Parameters
  • Cert Digest Algorithm Parameter

Was this helpful?

  1. Configuration

Config: Transport Section

Some Fluentd input, output, and filter plugins, that use server/http_server plugin helper, also support the <transport> section to specify how to handle the connections.

Transport Section Overview

The transport section must be under <match>, <source>, and <filter> sections. It specifies the transport protocol, version, and certificates.

# tcp
<transport tcp>
</transport>

# udp
<transport udp>
</transport>

# tls
<transport tls>
  cert_path /path/to/fluentd.crt
  private_key_path /path/to/fluentd.key
  private_key_passphrase YOUR_PASSPHRASE
  # ...
</transport>

Parameters

Protocol

The protocol is specified as the argument of <transport> section.

<transport PROTOCOL>
</transport>
  • [enum: tcp/udp/tls]

    • Default: tcp

General Setting

linger_timeout

type
default
available transport type
version

integer

0

tcp, tls

1.14.6

The timeout (seconds) to set SO_LINGER.

The default value 0 is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing.

You can set positive value to send FIN on closing.

On Windows, Fluentd sends FIN without depending on this setting.

<transport tcp>
  linger_timeout 1
</transport>

receive_buffer_size

type
default
available transport type
version

integer

nil

tcp, udp, tls

1.18.0

The max size of socket receive buffer for TCP/UDP. This is used in SO_RCVBUF socket option.

<transport udp>
  receive_buffer_size 4194304
</transport>

TLS Setting

  • version: [enum: TLS1_1/TLS1_2/TLS1_3]

    • Default: TLSv1_2

  • min_version: [enum: TLS1_1/TLS1_2/TLS1_3]

    • Default: nil

    • Specifies the lower bound of the supported SSL/TLS protocol.

  • max_version: [enum: TLS1_1/TLS1_2/TLS1_3]

    • Default: nil

    • Specifies the upper bound of the supported SSL/TLS protocol.

  • ciphers [string]

    • Default: "ALL:!aNULL:!eNULL:!SSLv2"

    • OpenSSL 1.0.0 or higher default.

  • insecure [bool]

    • Default: false (uses secure connection with tls)

  • ensure_fips: [bool]

    • Default: false

    • Version: 1.18.0

    • Specifies whether it must use FIPS mode with OpenSSL. If true, Fluentd will check FIPS mode is supported in your environment, if not, just aborts. If false, it does nothing and don't care FIPS mode with OpenSSL.

If you want to accept multiple TLS protocols, use min_version/max_version instead of version. To support the old style, fluentd accepts TLS1_1 and TLSv1_1 values.

NOTE: TLS1_3 is available when your system supports TLS 1.3.

Signed Public CA Parameters

For <transport tls>:

  • ca_path: [string]

    • Default: nil

    • Specifies the path of CA certificate file

  • cert_path: [string]

    • Default: nil

    • Specifies the path of Certificate file

  • private_key_path: [string]

    • Default: nil

    • Specifies the path of Private Key file

  • private_key_passphrase: [string]

    • Default: nil

    • Specifies the public CA private key passphrase

  • client_cert_auth: [bool]

    • Default: false

    • If true, Fluentd will check all the incoming HTTPS requests for a

      client certificate signed by the trusted CA. The requests that don't

      supply a valid client certificate will fail.

  • cert_verifier: [string]

    • Default: nil

    • Specifies the code path for cert verification. See also [server

      article](/developer/api-plugin-helper-server.md#cert_verifier-example).

Generated and Signed by Private CA Parameters

For <transport tls>:

  • ca_cert_path: [string]

    • Default: nil

    • Specifies the private CA cert path

  • ca_private_key_path: [string]

    • Default: nil

    • Specifies the private CA private key path

  • ca_private_key_passphrase: [string]

    • Default: nil

    • Specifies the private CA private key passphrase

Generated and Signed by Private CA Certs or Self-signed Parameters

For <transport tls>:

  • generate_private_key_length: [integer]

    • Default: 2048

  • generate_cert_country: [string]

    • Default: US

  • generate_cert_state: [string]

    • Default: CA

  • generate_cert_locality: [string]

    • Default: Mountain View

  • generate_cert_common_name: [string]

    • Default: nil

  • generate_cert_expiration: [integer]

    • Default: (60 * 60 * 24 = 86400) * 365 * 10 = 10 years

Cert Digest Algorithm Parameter

For <transport tls>:

  • generate_cert_digest: [enum: sha1/sha256/sha384/sha512]

    • Default: sha256

PreviousConfig: Inject SectionNextConfig: Storage Section

Last updated 5 months ago

Was this helpful?

If this article is incorrect or outdated, or omits critical information, please . is an open-source project under . All components are available under the Apache 2 License.

let us know
Fluentd
Cloud Native Computing Foundation (CNCF)