Skip to content

Journalctl

Journalctl

Find Recent Kernel Errors:

# Quiet, go to the most recent info, only dmesg messages
journalctl -qek

Grep for info:

journalctl -g "RAX"

Get logs from last boot:

#List boots
>>> journalctl --list-boots
IDX BOOT ID                          FIRST ENTRY                 LAST ENTRY    >
-14 c749a507224d4a81a774fe93a47c3efa Wed 2021-09-22 18:46:18 EDT Wed 2021-09-22>
-13 60da6b10e0f940499498ff207e270aa7 Wed 2021-09-22 23:44:42 EDT Thu 2021-09-23>
-12 ea37816b0d5d462781c9c1f61522178b Thu 2021-09-23 00:05:41 EDT Thu 2021-11-04>
-11 b0720c20f2f540c6af160d794d84b09e Fri 2021-11-05 14:03:41 EDT Sat 2021-11-13>
-10 0a0bfc81e7db4ef490a12ba28c8cf5b3 Sat 2021-11-13 07:14:26 EST Tue 2021-11-16>
 -9 74821be7da3f46bbaa13d84a802c8af7 Wed 2021-11-24 12:18:33 EST Tue 2021-11-30>
 -8 405dc6d3327a4ebbbc4c8c3e72ca606f Tue 2021-11-30 16:42:47 EST Fri 2022-01-14>
 -7 f4e077c85da4467cb87e17cb077b6a57 Fri 2022-01-14 15:29:26 EST Sat 2022-01-22>
 -6 1ed1769d903d4a2e942562d2ed9b3050 Thu 2022-02-03 11:14:14 EST Mon 2022-02-21>
 -5 e3d8183ed717403294238ee75e4fe8af Mon 2022-02-21 17:18:39 EST Sat 2022-03-05>
 -4 46e2cb6262cb4525891ae9ffe1be7492 Sat 2022-03-05 17:57:34 EST Sat 2022-03-05>
 -3 0c4a6ce3ea474cbc84ddf5885a80d34e Sat 2022-03-05 18:21:10 EST Tue 2022-07-05>
 -2 0f97040f1f564e8c9abf34d12789d778 Tue 2022-07-05 18:03:25 EDT Thu 2022-07-28>
 -1 11351dc392214ce681c3fcafa7d3601c Thu 2022-07-28 13:01:31 EDT Wed 2022-08-17>
  0 70cf0cc96f304302a767a53ce6f26090 Wed 2022-08-17 11:32:27 EDT Thu 2022-08-18>
#Get info from that boot
>>> journalctl -b -1

Specific Service Logs:

journalctl -xe -u haproxy