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? Thanks in advance, --- SUGIMURA Takashi <sugimura@infoscience.co.jp>
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
Hello Bazsi,
turn escaping off,
file d_apache { file("/var/log/access.log" template("$MSG\n") template_escape(no)); };
Thank you very much for a fundamentary solution. I've checked I could get logs keeping original style and please excuse me not to have read whole documents. --- SUGIMURA Takashi <sugimura@infoscience.co.jp> Infoscience Corporation Product Development Team, General Product Manager TEL: +81-3-5427-3509(Direct), +81-3-5427-3500(General) FAX: +81-3-5427-3530
participants (2)
-
Balazs Scheidler
-
SUGIMURA Takashi 杉村 貴士