Journalctl tips and tricks

From HPCWIKI
Jump to navigation Jump to search
Type Description Example Notes
boot log To see the boots that journald knows about journalctl --list-boots
Find error Find error from all services journalctl --file=/var/log/journal/*/* --follow
enable persistent boot information sudo mkdir -p /var/log/journalsudo vi /etc/systemd/journald.confadd,

. . .

[Journal]Storage=persistent

Time Windows journalctl --since "YYYY-MM-DD HH:MM:SS

" --until "YYYY-MM-DD HH:MM:SS"

References