All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: Chris Friesen <cfriesen@nortelnetworks.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel log messages using wrong timezone
Date: Fri, 4 Jan 2002 14:57:09 -0700	[thread overview]
Message-ID: <20020104145709.W12868@lynx.no> (raw)
In-Reply-To: <3C360D22.F6FFFAD6@nortelnetworks.com> <20020104135129.Q12868@lynx.no> <3C361AAC.EB9570B9@nortelnetworks.com>
In-Reply-To: <3C361AAC.EB9570B9@nortelnetworks.com>; from cfriesen@nortelnetworks.com on Fri, Jan 04, 2002 at 04:12:12PM -0500

On Jan 04, 2002  16:12 -0500, Chris Friesen wrote:
> Andreas Dilger wrote:
> > On Jan 04, 2002  15:14 -0500, Chris Friesen wrote:
> > > How does the kernel figure out how to timestamp the log output?
> > > The reason I'm asking is that we have a system that has /etc/localtime
> > > pointing to the Americas/Montreal timezone, but the log output from the
> > > kernel appears to be UTC.
> > 
> > The kernel doesn't timestamp the logs, AFAIK.  That is done by syslog when
> > it writes the logs to disk.  If you check "dmesg" output - no timestamps.
> 
> Hmm...good point.  However, I should clarify that userspace logs are being
> corrected for timezone, but kernel logs are not. For userspace apps the
> timestamping is done in the glibc syslog() call, so now I need to figure out
> where it's done for the kernel.

Well, on my system I have "syslogd" and "klogd" running.  Kernel logs are
extracted from the kernel ringbuffer by klogd and passed to syslog, so that
would be the place to look.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


  reply	other threads:[~2002-01-04 21:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-04 20:14 kernel log messages using wrong timezone Chris Friesen
2002-01-04 20:51 ` Andreas Dilger
2002-01-04 21:12   ` Chris Friesen
2002-01-04 21:57     ` Andreas Dilger [this message]
2002-01-04 21:47 ` kernel log messages using wrong timezone -- solved Chris Friesen
2002-01-05  0:38 ` kernel log messages using wrong timezone Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020104145709.W12868@lynx.no \
    --to=adilger@turbolabs.com \
    --cc=cfriesen@nortelnetworks.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.