Skip to content

Commit 98fdec7

Browse files
committed
adding template to omfwd action
1 parent 0060248 commit 98fdec7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rsyslog.conf.template

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ template(name="ContainerLogs" type="list") {
1818
constant(value="\n")
1919
}
2020

21-
action(type="omfwd" Target="${RSYSLOG_TARGET}" Port="${RSYSLOG_PORT}" Protocol="${RSYSLOG_PROTOCOL}")
21+
action(type="omfwd"
22+
template="ContainerLogs"
23+
Target="${RSYSLOG_TARGET}"
24+
Port="${RSYSLOG_PORT}"
25+
Protocol="${RSYSLOG_PROTOCOL}")
2226

2327
#action(type="omfile" dirCreateMode="0700" fileCreateMode="0644"
2428
# file="/var/log/messages" template="ContainerLogs")

0 commit comments

Comments
 (0)