Dmesg con tiempo en formato humano

Problema:

Queremos ver los logs del comando dmesg en formato humano y asociado a una hora

De esa manera no es legible

 
[   20.597170] IPv6: ADDRCONF(NETDEV_UP): enp2s0f4: link is not ready
[   20.597616] IPv6: ADDRCONF(NETDEV_UP): enp2s0f5: link is not ready
[   20.598192] IPv6: ADDRCONF(NETDEV_UP): enp2s0f6: link is not ready
[   20.598633] IPv6: ADDRCONF(NETDEV_UP): enp2s0f7: link is not ready
[   20.647000] bnx2x 0000:02:00.1 enp2s0f1: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit
[   20.647020] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0f1: link becomes ready
[   20.647143] bnx2x 0000:02:00.3 enp2s0f3: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit
[   20.647168] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0f3: link becomes ready
[   23.342038] qla2xxx [0000:06:00.0]-8038:1: Cable is unplugged...
[   23.686992] qla2xxx [0000:06:00.1]-8038:2: Cable is unplugged...
[   27.263047] FS-Cache: Loaded
[   27.303111] FS-Cache: Netfs 'nfs' registered for caching
[   67.585000] adrci[12654]: segfault at 40 ip 00002b81c354e2a9 sp 00007ffeac623830 error 4 in libclntsh.so.11.1[2b81c2ebb000+228f000]
[  119.413356] adrci[13547]: segfault at 40 ip 00002ad180e7697d sp 00007fff5fc96f30 error 4 in libclntsh.so.11.1[2ad18076d000+258e000]
[  119.413575] adrci[13548]: segfault at 40 ip 00002b5eaf00097d sp 00007ffedd3e1c20 error 4 in libclntsh.so.11.1[2b5eae8f7000+258e000]

Solución:

Para ello usamos la opción -T

[root@duero ~]# dmesg -T | more
[jue ene 24 21:39:10 2019] Initializing cgroup subsys cpuset
[jue ene 24 21:39:10 2019] Initializing cgroup subsys cpu
[jue ene 24 21:39:10 2019] Initializing cgroup subsys cpuacct
[jue ene 24 21:39:10 2019] Linux version 3.10.0-862.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed Mar 21 18:14:51 EDT 2018
[jue ene 24 21:39:10 2019] Command line: BOOT_IMAGE=/vmlinuz-3.10.0-862.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=es_ES.UTF-8
[jue ene 24 21:39:10 2019] e820: BIOS-provided physical RAM map:
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x0000000000000000-0x000000000009f3ff] usable
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x000000000009f400-0x000000000009ffff] reserved
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x0000000000100000-0x00000000df61efff] usable
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x00000000df61f000-0x00000000df62bfff] ACPI data
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x00000000df62c000-0x00000000df62cfff] usable
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x00000000df62d000-0x00000000e3ffffff] reserved
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x00000000fec00000-0x00000000fee0ffff] reserved
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x00000000ff800000-0x00000000ffffffff] reserved
[jue ene 24 21:39:10 2019] BIOS-e820: [mem 0x0000000100000000-0x000000181fffefff] usable
[jue ene 24 21:39:10 2019] NX (Execute Disable) protection: active
[jue ene 24 21:39:10 2019] SMBIOS 2.7 present.
[jue ene 24 21:39:10 2019] DMI: HP ProLiant BL460c G6, BIOS I24 05/05/2011
[jue ene 24 21:39:10 2019] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[jue ene 24 21:39:10 2019] e820: remove [mem 0x000a0000-0x000fffff] usable
[jue ene 24 21:39:10 2019] e820: last_pfn = 0x181ffff max_arch_pfn = 0x400000000
[jue ene 24 21:39:10 2019] MTRR default type: write-back
[jue ene 24 21:39:10 2019] MTRR fixed ranges enabled:
[jue ene 24 21:39:10 2019]   00000-9FFFF write-back
[jue ene 24 21:39:10 2019]   A0000-BFFFF uncachable
[jue ene 24 21:39:10 2019]   C0000-FFFFF write-protect
[jue ene 24 21:39:10 2019] MTRR variable ranges enabled:
[jue ene 24 21:39:10 2019]   0 base 00E0000000 mask FFE0000000 uncachable
[jue ene 24 21:39:10 2019]   1 disabled
[jue ene 24 21:39:10 2019]   2 disabled