From 5416a2b773921802500723d5a6cafbe8785f1749 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Mon, 11 Jul 2016 01:42:41 +0800 Subject: [PATCH] update rsyslog config --- Deploy/log/rsyslog_docker.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Deploy/log/rsyslog_docker.conf b/Deploy/log/rsyslog_docker.conf index 4c417b054..ce565c705 100644 --- a/Deploy/log/rsyslog_docker.conf +++ b/Deploy/log/rsyslog_docker.conf @@ -3,5 +3,6 @@ template(name="DynaFile" type="string" string="/var/log/docker/%$now%/%syslogtag:R,ERE,0,DFLT:[^[]*--end:secpath-replace%.log" ) +#if $programname == "docker" then ?DynaFile +if $programname != "rsyslogd" then -?DynaFile -if $programname == "docker" then ?DynaFile \ No newline at end of file