From 0bcdf8395ed2964e6e160dc52a5caeebad329674 Mon Sep 17 00:00:00 2001 From: Sascha Biberhofer Date: Mon, 26 Sep 2016 17:23:37 +0200 Subject: [PATCH] rsyslog: Allow the forwarding format to be specified with the 'forward' variable. Default to the old static value if the variable is undefined. --- templates/rsyslog_forwards.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/rsyslog_forwards.conf.j2 b/templates/rsyslog_forwards.conf.j2 index 55e72eb..aba7746 100644 --- a/templates/rsyslog_forwards.conf.j2 +++ b/templates/rsyslog_forwards.conf.j2 @@ -5,5 +5,5 @@ $ActionQueueType LinkedList $ActionQueueFileName {{ dest.name }} $ActionResumeRetryCount -1 $ActionQueueSaveOnShutdown on -*.* {{ dest.dest }};RSYSLOG_ForwardFormat +*.* {{ dest.dest }};{{ dest.format | default("RSYSLOG_ForwardFormat") }} {% endfor %}