Inconsistent timestamp from dmesg -T

Solution In Progress - Updated -

Issue

  • When converting dmesg output to a timestamp, it may be significantly inconsistent with when the kernel message actually happened.

  • On RHEL6, one would first execute

# echo Y > /sys/module/printk/parameters/time

and then use some script to add the [sec.msec] dmesg output to the current time (localtime), and finally convert it to an appropriate human readable format.

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 7
  • dmesg
  • util-linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content