Bug#497601: syslog-ng logs wrong timezone for MARK timestamp
Subject: syslog-ng: wrong timezone for MARK timestamp Package: syslog-ng Version: 2.0.9-4 Severity: normal *** Please type your report below this line *** (rbl.debian.net is too strict that I had been rejected all the mail account except this) syslog-ng logs wrong timestamp for periodical timestamp aka MARK. Sep 1 06:52:01 xxx1 /USR/SBIN/CRON[30926]: (root) CMD (test -x /usr/sbin/anacron || ( cd / run-parts --report /etc/cron.monthly )) Aug 31 22:12:59 xxx1 -- MARK -- Sep 1 07:17:01 xxx1 /USR/SBIN/CRON[5453]: (root) CMD ( cd / run-parts --report /etc/cron.hourly) Aug 31 22:37:00 xxx1 -- MARK -- Aug 31 22:57:00 xxx1 -- MARK -- Syslog-ng seems to be writing UTC timestamp for -- MARK --. (This machine's timezone is +0900, for dual-boot with windows) In the source code(logmsg.c), MARK message is built with LP_NOPARSE option; this make it skip for log_msg_parse() to localtime handling. One of the solution is to change option for MARK. (I'm using this patch, but I don't know so much about problem caused by this patch) *** logmsg.c.orig 2008-03-24 05:40:15.0 +0900 --- logmsg.c2008-09-01 11:51:42.0 +0900 *** *** 661,667 --- 661,670 LogMessage * log_msg_new_mark(void) { + /* LogMessage *self = log_msg_new(-- MARK --, 10, NULL, LP_NOPARSE, NULL); + */ + LogMessage *self = log_msg_new(-- MARK --, 10, NULL, 0, NULL); self-flags = LF_LOCAL | LF_MARK; self-pri = LOG_SYSLOG | LOG_INFO; return self; -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.18-6-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages syslog-ng depends on: ii libc6 2.7-13 GNU C Library: Shared libraries ii libevtlog00.2.8~1-2 Syslog event logger library ii libglib2.0-0 2.16.4-2 The GLib library of C routines ii lsb-base 3.2-19 Linux Standard Base 3.2 init scrip Versions of packages syslog-ng recommends: ii logrotate 3.7.1-3Log rotation utility syslog-ng suggests no packages. -- no debconf information _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#380207: Syslog-ng on PowerPC does not treat facility filtering properly
Package: syslog-ng Version: 2.0rc1 Syslog-ng on PowerPC does not treat facility filtering properly. As a result, certain facilities are completely ignored in the conf; goes into syslog. It's because of the difference of 'char' type. When you compile filter.c on PowerPC you will get the following messages : filter.c: In function 'filter_facility_eval': filter.c:200: warning: comparison is always true due to limited range of data type It may be resolved by this patch : diff -cr syslog-ng-2.0rc1.orig/src/filter.c syslog-ng-2.0rc1/src/filter.c *** syslog-ng-2.0rc1.orig/src/filter.c Mon Jun 12 08:33:57 2006 --- syslog-ng-2.0rc1/src/filter.c Fri Jul 28 11:11:38 2006 *** *** 189,195 } else { ! static gchar bitpos[32] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, --- 189,195 } else { ! static gint8 bitpos[32] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]