rsyslog: Allow the forwarding format to be specified with the 'forward'

variable. Default to the old static value if the variable is
undefined.
This commit is contained in:
Sascha Biberhofer
2016-09-26 17:23:37 +02:00
parent e9c71e6d6c
commit 0bcdf8395e

View File

@@ -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 %}