Hello. I think what I find one small bug in templates. The messages in log file have "\" before some symbols (",' etc). For example, log file definition: destination d_lan_by_host { file("/var/log/lan/$HOST.log" template("$DATE $MESSAGE\n")); }; The log file line is: Aug 18 12:28:53 At 07:28:50, Facility \"Auth Facility\", Level \"VERBOSE\":: A call, call id = 34996311, has arrived on interface slot:3/mod:23 The normal line is: Aug 18 12:28:53 At 07:28:50, Facility "Auth Facility", Level "VERBOSE":: A call, call id = 34996311, has arrived on interface slot:3/mod:23 Is it for normal file name generation, isn't it ? But it's not very suitable for log file... The version: 1.5.19 -- Regards, Sergey Afonin asy@kraft-s.ru
Try this directive: template_escape(off) On Mon, Aug 19, 2002 at 05:53:43PM +0500, Sergey Y. Afonin wrote:
Hello.
I think what I find one small bug in templates. The messages in log file have "\" before some symbols (",' etc). For example, log file definition:
destination d_lan_by_host { file("/var/log/lan/$HOST.log" template("$DATE $MESSAGE\n")); };
The log file line is:
Aug 18 12:28:53 At 07:28:50, Facility \"Auth Facility\", Level \"VERBOSE\":: A call, call id = 34996311, has arrived on interface slot:3/mod:23
The normal line is:
Aug 18 12:28:53 At 07:28:50, Facility "Auth Facility", Level "VERBOSE":: A call, call id = 34996311, has arrived on interface slot:3/mod:23
Is it for normal file name generation, isn't it ? But it's not very suitable for log file...
The version: 1.5.19
-- Regards, Sergey Afonin asy@kraft-s.ru
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- Jerome Peducasse Wanadoo Portails - Sophia Antipolis
On Monday 19 August 2002 18:00, Jerome Peducasse wrote:
Try this directive: template_escape(off)
Ok. Sorry, thanks. -- Regards, Sergey Afonin asy@kraft-s.ru
participants (2)
-
Jerome Peducasse
-
Sergey Y. Afonin