Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2022 18:11:17 +0100
From:      void <void@f-m.fm>
To:        freebsd-questions@freebsd.org
Subject:   Re: turn on timestamps in kernel log messages?
Message-ID:  <YwuhtfGRIN1pNNZV@void.f-m.fm>
In-Reply-To: <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org>
References:  <YwuEu68m6kiRFNrc@void.f-m.fm> <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 28, 2022 at 04:57:15PM +0000, Pete Wright wrote:
>
>i think you are looking for the kern.msgbuf_show_timestamp sysctl knob:
>
>via dmesg(8)
>kern.msgbuf_show_timestamp: 0
>             If set to 0, no timetamps are added.  If set to 1, then a
>             1-second granularity timestamp will be added to most lines in the
>             message buffer.  If set to 2, then a microsecond granularity
>             timestamp will be added.  This may also be set as a boot
>             loader(8) tunable.  The timestamps are placed at the start of
>             most lines that the kernel generates.  Some multi-line messages
>             will have only the first line tagged with a timestamp.

awesome! TYVM
-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YwuhtfGRIN1pNNZV>