Skip to content

Commit

Permalink
in_udp: document source_address_key
Browse files Browse the repository at this point in the history
The support for source_address_key was added to in_udp too.

https://www.fluentd.org/blog/fluentd-v1.4.2-has-been-released

Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
  • Loading branch information
Fujimoto Seiji committed Apr 10, 2019
1 parent 44ae5bd commit abf654d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/v1.0/in_udp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,31 @@ then the client's hostname is set to `client_host` field.
"client_host": "client.hostname.org"
}

### source_address_key

| type | default | version |
|:------:|:------------------------------:|:-------:|
| string | nil (no adding source address) | 1.4.2 |

The field name for the client's IP address. If you set this option, Fluentd automatically adds the remote address to each data record.

For example, if you have the following configuration:

<source>
@type udp
source_address_key client_addr
...
</source>

you will get something like below:

:::text
{
...
"client_addr": "192.168.10.10"
...
}

### message_length_limit

| type | default | version |
Expand Down

0 comments on commit abf654d

Please sign in to comment.