Skip to content

Commit

Permalink
in_syslog: add receive_buffer_size parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 committed Oct 8, 2024
1 parent dc8cf95 commit 73c4a65
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
14 changes: 14 additions & 0 deletions configuration/transport-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ On Windows, Fluentd sends FIN without depending on this setting.
</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.

```text
<transport udp>
receive_buffer_size 4194304
</transport>
```

### TLS Setting

* `version`: \[enum: `TLS1_1`/`TLS1_2`/`TLS1_3`\]
Expand Down
3 changes: 2 additions & 1 deletion input/syslog.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ The protocol of the `syslog` transport.
</source>
```

See **How to Enable TLS Encryption** section for how to use and see [Configuration Example](../plugin-helper-overview/api-plugin-helper-server.md#configuration-example) for all supported parameters.
This section is for setting TLS transport or some general transport configurations.
See **How to Enable TLS Encryption** section for how to use and see [Configuration Example](../plugin-helper-overview/api-plugin-helper-server.md#configuration-example) and [Config: Transport Section](../configuration/transport-section.md) for all supported parameters.

### `message_length_limit`

Expand Down
1 change: 1 addition & 0 deletions input/tcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ The maximum number of bytes for the message.
| enum | tcp | tcp, tls | 0.14.12 |

This section is for setting TLS transport or some general transport configurations.
See [Config: Transport Section](../configuration/transport-section.md) for all supported parameters.

#### General configuration

Expand Down
11 changes: 11 additions & 0 deletions input/udp.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,19 @@ Removes the newline from the end of the incoming payload.
| :--- | :--- | :--- |
| size | nil | 1.0.1 |

This is a deprecated parameter. Use `receive_buffer_size` in `<transport>` section instead.

The max size of socket receive buffer. This is used in `SO_RCVBUF` socket option.

### `<transport>` Section

| type | default | available values | version |
| :--- | :--- | :--- | :--- |
| enum | udp | udp | 1.18.0 |

This section is for some general transport configurations.
See [Config: Transport Section](../configuration/transport-section.md) for all supported parameters.

### `<parse>` Section

| required | multi | version |
Expand Down

0 comments on commit 73c4a65

Please sign in to comment.