fix: add RFC3164 to RFC5424 translation to docs (#10480)

This commit is contained in:
Joshua Powers 2022-01-20 14:47:26 -07:00 committed by GitHub
parent dd98e4b045
commit 20f007b28e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -174,4 +174,17 @@ If you see the following error, it is due to a message encoded in this format:
E! Error in plugin [inputs.syslog]: expecting a version value in the range 1-999 [col 5]
```
You can use rsyslog to translate RFC3164 syslog messages into RFC5424 format.
Users can use rsyslog to translate RFC3164 syslog messages into RFC5424 format.
Add the following lines to the rsyslog configuration file
(e.g. `/etc/rsyslog.d/50-telegraf.conf`):
```s
# This makes rsyslog listen on 127.0.0.1:514 to receive RFC3164 udp
# messages which can them be forwared to telegraf as RFC5424
$ModLoad imudp #loads the udp module
$UDPServerAddress 127.0.0.1
$UDPServerRun 514
```
Make adjustments to the target address as needed and sent your RFC3164 messages
to port 514.