net.connect_timeout
allows to configure the maximum time to wait for a connection to be established, note that this value already considers the TLS handshake process.net.connect_timeout_log_error
indicates if an error should be logged in case of connect timeout. If disabled, the timeout is logged as debug level message instead.net.source_address
allows to specify which network address must be used for a TCP connection and data flow.Connection Keepalive
refers to the ability of the client (Fluent Bit on this case) to keep the TCP connection open in a persistent way, that means that once the connection is created and used, instead of close it, it can be recycled. This feature offers many benefits in terms of performance since communication channels are always established before hand.net.keepalive
property.net.keepalive_idle_timeout
.net.dns.mode
setting is specified on overrides the global dns.mode
value and issues DNS requests using the specified protocol which can be either TCP or UDPnet.connect_timeout
net.connect_timeout_log_error
net.source_address
net.keepalive
net.keepalive_idle_timeout
net.keepalive_max_recycle
net.dns.mode
nc
(netcat) utility to see the data.fluent-bit.conf
:nc
and make it listen for messages on TCP port 9090:net.keepalive
option is not enabled, Fluent Bit will close the TCP connection and netcat will quit, here we can see how the keepalive connection works.net.keepalive_idle_timeout
.