Journalctl tips and tricks

From HPCWIKI
Revision as of 10:55, 18 February 2024 by Admin (talk | contribs) (Created page with "{| class="wikitable" |+ !Type !Description !Example !Notes |- |boot log |To see the boots that <code>journald</code> knows about |<code>journalctl --list-boots</code> | |- |enable persistent boot information | |<code>sudo mkdir -p /var/log/journal</code><code>sudo vi /etc/systemd/journald.conf</code>add, <code>. . .</code> <code>[Journal]</code><code>Storage=<mark>persistent</mark></code> | |- |Time Windows | |<code>journalctl --since "YYYY-MM-DD HH:MM:SS</code> <code>"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Type Description Example Notes
boot log To see the boots that journald knows about journalctl --list-boots
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