Skip to content

Commit c7d9c1c

Browse files
author
Christopher M. Neill
committed
let's have separate output channels for each {{ name }} managed by rsyslog to support multiple apps per instance (as one does).
1 parent 0889ab8 commit c7d9c1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ansible/roles/loggly/templates/21-output-syslog.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $PrivDropToGroup adm
33

44
# start log rotation via outchannel
55
# outchannel definition
6-
$outchannel log_rotation,/var/log/{{ name }}.log, 52428800,/opt/runnable/bin/rotate-{{ name }}-logs.sh
6+
$outchannel log_rotation_{{ name }},/var/log/{{ name }}.log, 52428800,/opt/runnable/bin/rotate-{{ name }}-logs.sh
77
# activate the channel and log everything to it
88
local7.* :omfile:$log_rotation
99
# end log rotation via outchannel

0 commit comments

Comments
 (0)