From 140c7334c67754cc0494214a965149242f5f5f31 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Thu, 3 Nov 2022 13:47:58 -0600 Subject: [PATCH] docs(inputs.syslog): mention usage of tcp4/6 (#12168) fixes: #5934 --- plugins/inputs/syslog/README.md | 3 +++ plugins/inputs/syslog/sample.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plugins/inputs/syslog/README.md b/plugins/inputs/syslog/README.md index f1774025c..eef733d2e 100644 --- a/plugins/inputs/syslog/README.md +++ b/plugins/inputs/syslog/README.md @@ -28,6 +28,9 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. ## ex: server = "tcp://localhost:6514" ## server = "udp://:6514" ## server = "unix:///var/run/telegraf-syslog.sock" + ## When using tcp, consider using 'tcp4' or 'tcp6' to force the usage of IPv4 + ## or IPV6 respectively. There are cases, where when not specified, a system + ## may force an IPv4 mapped IPv6 address. server = "tcp://:6514" ## TLS Config diff --git a/plugins/inputs/syslog/sample.conf b/plugins/inputs/syslog/sample.conf index d166134c2..5c73effcb 100644 --- a/plugins/inputs/syslog/sample.conf +++ b/plugins/inputs/syslog/sample.conf @@ -5,6 +5,9 @@ ## ex: server = "tcp://localhost:6514" ## server = "udp://:6514" ## server = "unix:///var/run/telegraf-syslog.sock" + ## When using tcp, consider using 'tcp4' or 'tcp6' to force the usage of IPv4 + ## or IPV6 respectively. There are cases, where when not specified, a system + ## may force an IPv4 mapped IPv6 address. server = "tcp://:6514" ## TLS Config