[syslog-ng]extra escape sequences

Balazs Scheidler syslog-ng@lists.balabit.hu
Wed, 23 Apr 2003 18:14:57 +0200


On Thu, Apr 24, 2003 at 12:42:44AM +0900, SUGIMURA Takashi ?$B?yB< ?$B5.;N wrote:
> Hello all developers,
> 
> I've been using your syslog-ng for including our software package of
> log management system. I'm trying its version 1.6.0rc1 and libol-0.3.9,
> and I'll also try the newest version later.
> 
> I found that syslog-ng can not handle some characters well when
> the syslog-ng receives logs by tcp. I tested this problem only by tcp,
> but I think that other sources might cause this problem.
> 
> I send the log message by tcp the follows:
> 
> -----
> 192.168.254.111 - - [22/Apr/2003:14:30:30 +0900] "GET /~sugimura/ HTTP/1.0" 200 3448 "-" "-"
> -----
> 
> You know, this log was created by apache.
> 
> When syslog-ng receives this log, it writes down with extra escape sequences
> as the follows:
> 
> -----
> 192.168.254.111 - - [22/Apr/2003:14:30:30 +0900] \"GET /~sugimura/ HTTP/1.0\" 200 3448 \"-\" \"-\"
> -----
> 
> I think syslog-ng can not handle these kind of characters which defined by
> C language strings, which are ', ", \, and so on.
> 
> Would you please check and fix this problem?

turn escaping off, 

file d_apache { file("/var/log/access.log" template("$MSG\n") template_escape(no)); };


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1