Your message dated Thu, 06 Oct 2011 15:52:01 +0200
with message-id <[email protected]>
and subject line Fixed a long time ago
has caused the Debian Bug report #497601,
regarding syslog-ng logs wrong timezone for MARK timestamp
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
497601: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497601
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
This has been fixed a long, long time ago. The intial import of
syslog-ng 3.1 in early 2007 already has this fixed.

-- 
|8]



--- End Message ---

Reply via email to