Versions | v1.0 (td-agent3) | v0.12 (td-agent2)

Unix Domain Socket Input Plugin

The in_unix Input plugin enables Fluentd to retrieve records from the Unix Domain Socket. The wire protocol is the same as in_forward, but the transport layer is different.

Table of Contents

Example Configuration

in_unix is included in Fluentd’s core. No additional installation process is required.

<source>
  @type unix
  path /path/to/socket.sock
</source>
Please see the [Config File](config-file) article for the basic structure and syntax of the configuration file.

Parameters

@type (required)

The value must be unix.

path

type default version
string /var/run/fluent/fluent.sock or FLUENT_SOCKET environment variable 0.14.0

The path to your Unix Domain Socket.

backlog

type default version
integer 1024 0.14.0

The backlog of Unix Domain Socket.

@log_level option

The @log_level option allows the user to set different levels of logging for each plugin. The supported log levels are: fatal, error, warn, info, debug, and trace.

Please see the logging article for further details.

Learn More

Last updated: 2019-02-19 17:24:22 +0000

Versions | v1.0 (td-agent3) | v0.12 (td-agent2)

If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is a open source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.