How to convert a dmesg timestamp to a custom readable date format

Solution Verified - Updated -

Issue

When viewing the dmesg file as contained within the sosreport.
Example sos rpm used (sos-3.9-5.el7_9.2.noarch)

./sosreport-node_name-CCYY-MM-DD-#######/sos_commands/kernel/dmesg

The date and time stamps are not legible, making it difficult to cross reference log entries with specific reported events.

dmesg -F 'input_file' - Does not output the log file date and timestamps.

Environment

  • Red Hat Enterprise Linux
    • 7
    • 8
    • 9
  • sos

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