Skip to content

Commit ddda886

Browse files
authored
in_syslog: add receive_buffer_size parameter (#518)
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent f1e7b55 commit ddda886

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

configuration/transport-section.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ On Windows, Fluentd sends FIN without depending on this setting.
6262
</transport>
6363
```
6464

65+
#### `receive_buffer_size`
66+
67+
| type | default | available transport type | version |
68+
| :--- | :--- | :--- | :--- |
69+
| integer | nil | tcp, udp, tls | 1.18.0 |
70+
71+
The max size of socket receive buffer for TCP/UDP. This is used in `SO_RCVBUF` socket option.
72+
73+
```text
74+
<transport udp>
75+
receive_buffer_size 4194304
76+
</transport>
77+
```
78+
6579
### TLS Setting
6680

6781
* `version`: \[enum: `TLS1_1`/`TLS1_2`/`TLS1_3`\]

input/syslog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ The protocol of the `syslog` transport.
103103
</source>
104104
```
105105

106-
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.
106+
This section is for setting TLS transport or some general transport configurations.
107+
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.
107108

108109
### `message_length_limit`
109110

input/tcp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ The maximum number of bytes for the message.
148148
| enum | tcp | tcp, tls | 0.14.12 |
149149

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

152153
#### General configuration
153154

input/udp.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,19 @@ Removes the newline from the end of the incoming payload.
141141
| :--- | :--- | :--- |
142142
| size | nil | 1.0.1 |
143143

144+
This is a deprecated parameter. Use `receive_buffer_size` in `<transport>` section instead.
145+
144146
The max size of socket receive buffer. This is used in `SO_RCVBUF` socket option.
145147

148+
### `<transport>` Section
149+
150+
| type | default | available values | version |
151+
| :--- | :--- | :--- | :--- |
152+
| enum | udp | udp | 1.18.0 |
153+
154+
This section is for some general transport configurations.
155+
See [Config: Transport Section](../configuration/transport-section.md) for all supported parameters.
156+
146157
### `<parse>` Section
147158

148159
| required | multi | version |

0 commit comments

Comments
 (0)