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.000000000 +0900
--- logmsg.c    2008-09-01 11:51:42.000000000 +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  libevtlog0                    0.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-3    Log 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]

Reply via email to