Skip to content

Commit fc9c11f

Browse files
author
Christopher M. Neill
committed
same with "docker_engine"
1 parent 8cf506b commit fc9c11f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ansible/roles/loggly/files/21-rotated-docker.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ $WorkDirectory /var/spool/rsyslog
22

33
# Rotate per hour
44
$template RotateHourly_docker_engine,"/var/log/runnable/%$YEAR%/%$MONTH%/%$DAY%/%$HOUR%/docker_engine.log"
5-
if $msg contains 'docker_engine' and $syslogfacility-text == 'local7' then { action (type="omfile" DynaFile="RotateHourly_docker_engine" template="RunnableJSON" dirCreateMode="0755" FileCreateMode="0644") }
5+
if $syslogtag contains 'docker_engine' and $syslogfacility-text == 'local7' then { action (type="omfile" DynaFile="RotateHourly_docker_engine" template="RunnableJSON" dirCreateMode="0755" FileCreateMode="0644") }
66

77
# Loggly: Add a tag for docker_engine events
8-
$template LogglyFormat_docker_engine,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [f673760d-e0b3-4a93-a15e-2862ea074f91@41058 tag=\"runnable\" tag=\"production-epsilon\"] %msg%\n"
9-
if $msg contains 'docker_engine' and $syslogfacility-text == 'local7' then @@logs-01.loggly.com:6514;LogglyFormat_docker_engine
10-
if $msg contains 'docker_engine' and $syslogfacility-text == 'local7' then stop
8+
$template LogglyFormat_docker_engine,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %syslogtagid% [f673760d-e0b3-4a93-a15e-2862ea074f91@41058 tag=\"runnable\" tag=\"production-epsilon\"] %syslogtag%\n"
9+
if $syslogtag contains 'docker_engine' and $syslogfacility-text == 'local7' then @@logs-01.loggly.com:6514;LogglyFormat_docker_engine
10+
if $syslogtag contains 'docker_engine' and $syslogfacility-text == 'local7' then stop

0 commit comments

Comments
 (0)