Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2022 14:48:55 +1000
From:      Andy Farkas <andyf@andyit.com.au>
To:        questions@freebsd.org
Subject:   Re: turn on timestamps in kernel log messages?
Message-ID:  <ca750e27-af02-1d80-2be2-effed0d0bf8e@andyit.com.au>
In-Reply-To: <20220829040424.wdunjidqvprd76xn@shelly.nomadlogic.org>
References:  <YwuEu68m6kiRFNrc@void.f-m.fm> <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org> <YwuhtfGRIN1pNNZV@void.f-m.fm> <eef21030-3a98-4a25-902c-9f66143c84bf@langille.org> <Ywv%2BZeOeFVVjWsqH@void.f-m.fm> <YwwCi2uvq%2B9TKsFQ@void.f-m.fm> <20220829040424.wdunjidqvprd76xn@shelly.nomadlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ca750e27-af02-1d80-2be2-effed0d0bf8e>