Skip to content

Commit 15e118e

Browse files
Merge pull request #486 from CodeNow/syslogtag-docker-engine
Bullocks
2 parents 03fadb2 + 6e23c59 commit 15e118e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
$WorkDirectory /var/spool/rsyslog
22

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

78
# Loggly: Add a tag for docker_engine events
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+
$ActionQueueType LinkedList
10+
$template LogglyFormat_docker_engine,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %syslogtag% [{{ loggly_token }}@41058 tag=\"runnable\" tag=\"{{ node_env }}\"] %msg%\n"
911
if $syslogtag contains 'docker_engine' and $syslogfacility-text == 'local7' then @@logs-01.loggly.com:6514;LogglyFormat_docker_engine
1012
if $syslogtag contains 'docker_engine' and $syslogfacility-text == 'local7' then stop

0 commit comments

Comments
 (0)