Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2022 18:00:34 -0400
From:      Dan Langille <dan@langille.org>
To:        void <void@f-m.fm>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: turn on timestamps in kernel log messages?
Message-ID:  <eef21030-3a98-4a25-902c-9f66143c84bf@langille.org>
In-Reply-To: <YwuhtfGRIN1pNNZV@void.f-m.fm>
References:  <YwuEu68m6kiRFNrc@void.f-m.fm> <20220828165715.fr3gvjk2esatukn5@shelly.nomadlogic.org> <YwuhtfGRIN1pNNZV@void.f-m.fm>

next in thread | previous in thread | raw e-mail | index | archive | help
void wrote on 8/28/22 1:11 PM:
> 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
Did it work?

-- 
Dan Langille
dan@langille.org : https://langille.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eef21030-3a98-4a25-902c-9f66143c84bf>