Re: turn on timestamps in kernel log messages?
- Reply: void : "Re: turn on timestamps in kernel log messages?"
- In reply to: void : "Re: turn on timestamps in kernel log messages?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Aug 2022 22:00:34 UTC
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/