From 00e8b129f729db5ddd4bbff8a3a85ae05e74b80c Mon Sep 17 00:00:00 2001 From: ryphon Date: Sat, 4 Jan 2025 21:36:39 -0700 Subject: [PATCH 1/2] T7017: Telegraf should have .info as input for syslog --- data/templates/telegraf/syslog_telegraf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/templates/telegraf/syslog_telegraf.j2 b/data/templates/telegraf/syslog_telegraf.j2 index cdcbd92a45..143fffaceb 100644 --- a/data/templates/telegraf/syslog_telegraf.j2 +++ b/data/templates/telegraf/syslog_telegraf.j2 @@ -2,4 +2,8 @@ $ModLoad omuxsock $OMUxSockSocket /run/telegraf/telegraf_syslog.sock +{% if telegraf.loki or telegraf.splunk %} +*.info;*.notice :omuxsock: +{% else %} *.notice :omuxsock: +{% endif %} From a621e87423e2eb5829ce813fcb084a1899e397bb Mon Sep 17 00:00:00 2001 From: ds Date: Sun, 5 Jan 2025 11:57:59 -0700 Subject: [PATCH 2/2] Update data/templates/telegraf/syslog_telegraf.j2 T7017: updating using vyos_defined keyword as suggested Co-authored-by: Christian Breunig --- data/templates/telegraf/syslog_telegraf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/templates/telegraf/syslog_telegraf.j2 b/data/templates/telegraf/syslog_telegraf.j2 index 143fffaceb..4fe6382ab8 100644 --- a/data/templates/telegraf/syslog_telegraf.j2 +++ b/data/templates/telegraf/syslog_telegraf.j2 @@ -2,7 +2,7 @@ $ModLoad omuxsock $OMUxSockSocket /run/telegraf/telegraf_syslog.sock -{% if telegraf.loki or telegraf.splunk %} +{% if telegraf.loki is vyos_defined or telegraf.splunk is vyos_defined %} *.info;*.notice :omuxsock: {% else %} *.notice :omuxsock: