RE: [syslog-ng] Apache 2 + logger + syslog-ng
Sorry, Here's the system information: syslog-ng 1.6.9 built from source (on both ends) CentOS/RHEL 4.3 (on both ends) Apache 2.2 built from source as well /usr/bin/logger from package util-linux-2.12a-16.EL4.12 Thanks, J.F. -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Balazs Scheidler Sent: April 11, 2006 8:03 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] Apache 2 + logger + syslog-ng On Mon, 2006-04-10 at 14:04 -0400, Doyon, Jean-Francois wrote:
Hello,
I've implemented centralized logging for my web servers using syslog-ng and Apache's log pipe functionality.
you forgot to mention syslog-ng version, which is an important piece of information when reporting a problem. -- Bazsi _______________________________________________ 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
On Tue, 2006-04-11 at 09:50 -0400, Doyon, Jean-Francois wrote:
Sorry,
Here's the system information:
syslog-ng 1.6.9 built from source (on both ends) CentOS/RHEL 4.3 (on both ends) Apache 2.2 built from source as well /usr/bin/logger from package util-linux-2.12a-16.EL4.12
I've just tried to send a 5000 byte message to syslog-ng and it correctly wrote MSGONLY to the file. Tried the same using logger and it did not work: write(3, "<5>Apr 12 10:42:22 <someone>: xx"..., 431) = 431 readlink("/proc/self/fd/0", "pipe:[69597]", 511) = 12 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffe878) = -1 EINVAL (Invalid argument) time([1144831342]) = 1144831342 write(3, "<5>Apr 12 10:42:22 <someone>: xx"..., 431) = 431 readlink("/proc/self/fd/0", "pipe:[69597]", 511) = 12 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffe878) = -1 EINVAL (Invalid argument) time([1144831342]) = 1144831342 write(3, "<5>Apr 12 10:42:22 <someone>: xx"..., 431) = 431 readlink("/proc/self/fd/0", "pipe:[69597]", 511) = 12 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffe878) = -1 EINVAL (Invalid argument) time([1144831342]) = 1144831342 write(3, "<5>Apr 12 10:42:22 <someone>: xx"..., 431) = 431 read(0, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 905 readlink("/proc/self/fd/0", "pipe:[69597]", 511) = 12 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffe878) = -1 EINVAL (Invalid argument) time([1144831342]) = 1144831342 write(3, "<5>Apr 12 10:42:22 <someone>: xx"..., 431) = 431 strace shows that logger writes 431 bytes to syslog-ng, so the problem is in logger. -- Bazsi
participants (2)
-
Balazs Scheidler
-
Doyon, Jean-Francois