<br><tt><font size=2>Hi again</font></tt>
<br>
<br>
<br><tt><font size=2>First of all, I already used syslog-ng before, but
I had no idea it was doing parsing, so this is normal :p</font></tt>
<br>
<br><tt><font size=2>I changed my configuration to use the no_parse function
in the source driver of the webserver on which the syslog-ng client</font></tt>
<br><tt><font size=2>forwards the messages to the syslog server. This does
the trick. </font></tt>
<br>
<br><tt><font size=2>I don't even have to change the configuration on the
target syslog server which greatly reduces configuration file changes.</font></tt>
<br>
<br>
<br><tt><font size=2>Thx for the answer!</font></tt>
<br>
<br>
<br><tt><font size=2>Filip</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>&gt; Hi,<br>
&gt; <br>
&gt; &gt; I have a weird problem with syslog-ng. I am setting up a syslog-ng<br>
&gt; client on an Apache server which forward both access and error log
<br>
&gt; to a central syslog-ng server.<br>
&gt; <br>
&gt; First of all please note that you're trying to deal with<br>
&gt; non-standard-compliant messages. syslog-ng tries to parse the incoming<br>
&gt; log lines trying various known syslog formats.<br>
&gt; <br>
&gt; &gt; The access log on the source has entries like this:<br>
&gt; &gt; 10.3.154.20 - - [23/Apr/2010:13:55:25 +0200] &quot;GET /images/userLo...<br>
&gt; &gt; and this becomes like this on the syslog server:<br>
&gt; &gt; servername 10.3.154.20: - - [23/Apr/2010:13:55:25 +0200] &quot;GET
/images/use<br>
&gt; <br>
&gt; The first syslog-ng (which receives the apache log) parses the line.<br>
&gt; There is no syslog header found so it falls back to the legacy format.<br>
&gt; There is neither priority code nor timestamp so the IP address becomes<br>
&gt; the program name. That's why you see it logger on the second server.<br>
&gt; <br>
&gt; &gt; All ok with this one, but with the error log I get this on the
webserver:<br>
&gt; &gt; [Fri Apr 23 13:55:25 2010] [error] [client 10.3.154.20] File
doe...<br>
&gt; &gt; but this on the syslog server:<br>
&gt; &gt; servername Apr 23 13:55:25 2010] [error] [client 10.3.154.20]
File do...<br>
&gt; &gt;<br>
&gt; &gt; Where is the [ character at the beginning of the timestamp gone?????<br>
&gt; <br>
&gt; As above, this line isn't a syslog message at all. From syslog's<br>
&gt; perspective it's more or less random junk. The trailing '[' causes<br>
&gt; that there is no program name at all and the parser thinks the<br>
&gt; following string up to the closing ']' is the pid like in normal logs<br>
&gt; eg. programname[pid]<br>
&gt; <br>
&gt; I don't see how could this &quot;pid&quot; appear on the receiving
side with<br>
&gt; only the closing brace. Please show your configs and the captured<br>
&gt; network packet too.<br>
&gt; <br>
&gt; In general when an app doesn't speak syslog formats and there is no<br>
&gt; option to format its logs properly then using the no-parse option
(on<br>
&gt; all syslog-ng servers the log passes through) or writing a small app<br>
&gt; which reformats the logs and feeds to syslog-ng is the way to go.<br>
&gt; <br>
&gt; Regards,<br>
&gt; <br>
&gt; Sandor<br>
&gt; <br>
</font></tt>
<br>
<br>
<br>
<br>
<P><FONT face=Arial size=1>
<HR>
</FONT></P>
<P></P>
<P><FONT face=Arial size=1><EM>The information contained in this e-mail is for 
the exclusive use of the intended recipient(s) and may be confidential, 
proprietary, and/or legally privileged.&nbsp; Inadvertent disclosure of this 
message does not constitute a waiver of any privilege.&nbsp; If you receive this 
message in error, please do not directly or indirectly use, print, copy, 
forward, or disclose any part of this message.&nbsp; Please also delete this 
e-mail and all copies and notify the sender.&nbsp; Thank you. </EM></FONT></P>
<P><FONT face=Arial size=1><EM>For alternate languages please go to 
</EM></FONT><A href="http://bayerdisclaimer.bayerweb.com"><FONT face=Arial 
color=#0000ff size=1><EM>http://bayerdisclaimer.bayerweb.com</EM></FONT></A></P>
<P><FONT face=Arial size=1>
<HR>
</FONT>
<P></P>