Re: turn on timestamps in kernel log messages?

From: Kevin Oberman <rkoberman_at_gmail.com>
Date: Mon, 29 Aug 2022 17:23:31 UTC
On Sun, Aug 28, 2022 at 9:49 PM Andy Farkas <andyf@andyit.com.au> wrote:

>
> On 29/08/2022 2:04 pm, Pete Wright wrote:
>
> > might be worth adjusting your syslog.conf to capture all kern.*
> > messages, then they'll land in /var/log/messages or somewhere similar
> > and have human readable timestamps.
>
> I have this in my /etc/rc.conf :
>
> syslogd_enable="YES"
> syslogd_flags="-ss -vv"
>
>
> this in my /etc/syslog.conf :
>
> *.*;console.none                                /var/log/all.log
>
>
> and this in my /etc/newsyslog.conf :
>
> /var/log/all.log                        600  6     *    $W0D1 J
>
>
> [you'll get double logging without console.none]
>
>
> -andyf
>
>
> I think the issue is that the periodic script does not include the
timestamps in the kernel log messages. If you look at "/var/log/messages |
grep kernel", do you see time-stamps? You might also add a grep for the
date to further limit the old data. Don't forget that the ctime format
space pads the day if it is a single digit.


-- 
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683