The file test.log is the input for logger:<br>$ logger -f test.log -p <a href="http://local6.info">local6.info</a> -t TEST<br><br>The result is given by the file local6.log<br>As you can see, the part : " log. hello this is the second "is missing (31 characters). The syslog header is 31 char long.<br>
<br>I've also post the result of the strace (strace.txt). The useful part seems to be at line 119:<br><font style="font-family: courier new,monospace;" size="2">send(1, "<182>Jan 5 13:04:01 TESTSAP: Fi"..., 1053, MSG_NOSIGNAL) = 1053<br>
time(NULL) = 1231157041<br>stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1920, ...}) = 0<br>send(1, "<182>Jan 5 13:04:01 TESTSAP: lo"..., 66, MSG_NOSIGNAL) = 66<br>
read(0, "", 4096) = 0<br>close(1) = 0</font><br><br><br>Thanks.<br>G.<br><br><br><div class="gmail_quote">2009/1/5 Geller, Sandor (IT) <span dir="ltr"><<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Hi,<br>
<br>
> Using logger command, I'm trying to send long messages to<br>
> syslog-ng. I'm aware that messages cannot be too long (UDP<br>
> limitation). The problem is that logger doesn't just cut my<br>
> log, it also remove some part of the log replacing it with<br>
> the syslog header. Needless to say, this information is<br>
> crucial to me.<br>
<br>
</div>Well, UDP itself allows to send data up to 64k, as IP itself<br>
handles fragmentation/ reassembling. What kind of messages<br>
are you trying to log? logger shouldn't replace anything. It<br>
simply uses openlog and syslog under the hood, so the log<br>
gets prepended by the facility/severity information and the<br>
timestamp.<br>
<br>
Did you straced logger?<br>
<br>
Regards,<br>
<br>
Sandor<br>
--------------------------------------------------------<br>
<br>
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
</blockquote></div><br>