Forward
Forward is the protocol used by Fluent Bit and Fluentd to route messages between peers. This plugin implements the input service to listen for Forward messages.
Configuration Parameters
The plugin supports the following configuration parameters:
Key | Description | Default |
---|---|---|
Listen | Listener network interface. | 0.0.0.0 |
Port | TCP port to listen for incoming connections. | 24224 |
Unix_Path | Specify the path to unix socket to receive a Forward message. If set, | |
Unix_Perm | Set the permission of the unix socket file. If | |
Buffer_Max_Size | 6144000 | |
Buffer_Chunk_Size | 1024000 | |
Tag_Prefix | Prefix incoming tag with the defined value. | |
Tag | Override the tag of the forwarded events with the defined value. |
Getting Started
In order to receive Forward messages, you can run the plugin from the command line or through the configuration file as shown in the following examples.
Command Line
From the command line you can let Fluent Bit listen for Forward messages with the following options:
By default the service will listen an all interfaces (0.0.0.0) through TCP port 24224, optionally you can change this directly, e.g:
In the example the Forward messages will only arrive through network interface under 192.168.3.2 address and TCP Port 9090.
Configuration File
In your main configuration file append the following Input & Output sections:
Testing
Once Fluent Bit is running, you can send some messages using the fluent-cat tool (this tool is provided by Fluentd:
In Fluent Bit we should see the following output:
Last updated