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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.