Home Explore Blog CI



man-pages

9th chunk of `journalctl.man`
69c65212ceb12c4ea0e34e4bce1b5ce61467d8efbaea6b230000000100000fa7
 specific limit, and is thus redundant.

           These three switches may also be combined with --rotate into one command. If so, all active files are rotated first, and the requested vacuuming operation is executed right after. The rotation has the effect that
           all currently active files are archived (and potentially new, empty journal files opened as replacement), and hence the vacuuming operation has the greatest effect as it can take all log data written so far into
           account.

       --verify
           Check the journal file for internal consistency. If the file has been generated with FSS enabled and the FSS verification key has been specified with --verify-key=, authenticity of the journal file is verified.

       --sync
           Asks the journal daemon to write all yet unwritten journal data to the backing file system and synchronize all journals. This call does not return until the synchronization operation is complete. This command
           guarantees that any log messages written before its invocation are safely stored on disk at the time it returns.

       --relinquish-var
           Asks the journal daemon for the reverse operation to --flush: if requested the daemon will write further log data to /run/log/journal/ and stops writing to /var/log/journal/. A subsequent call to --flush causes
           the log output to switch back to /var/log/journal/, see above.

       --smart-relinquish-var
           Similar to --relinquish-var, but executes no operation if the root file system and /var/lib/journal/ reside on the same mount point. This operation is used during system shutdown in order to make the journal
           daemon stop writing data to /var/log/journal/ in case that directory is located on a mount point that needs to be unmounted.

       --flush
           Asks the journal daemon to flush any log data stored in /run/log/journal/ into /var/log/journal/, if persistent storage is enabled. This call does not return until the operation is complete. Note that this call is
           idempotent: the data is only flushed from /run/log/journal/ into /var/log/journal/ once during system runtime (but see --relinquish-var below), and this command exits cleanly without executing any operation if
           this has already happened. This command effectively guarantees that all data is flushed to /var/log/journal/ at the time it returns.

       --rotate
           Asks the journal daemon to rotate journal files. This call does not return until the rotation operation is complete. Journal file rotation has the effect that all currently active journal files are marked as
           archived and renamed, so that they are never written to in future. New (empty) journal files are then created in their place. This operation may be combined with --vacuum-size=, --vacuum-time= and --vacuum-file=
           into a single command, see above.

       --header
           Instead of showing journal contents, show internal header information of the journal fields accessed.

           This option is particularly useful when trying to identify out-of-order journal entries, as happens for example when the machine is booted with the wrong system time.

       --list-catalog [128-bit-ID...]
           List the contents of the message catalog as a table of message IDs, plus their short description strings.

           If any 128-bit-IDs are specified, only those entries are shown.

       --dump-catalog [128-bit-ID...]
           Show the contents of the message catalog, with entries separated by a line consisting of two dashes and the ID (the format is the same as .catalog files).

           If any 128-bit-IDs are specified, only those entries are shown.

       --update-catalog
           Update the message catalog index. This command needs to be executed each time new catalog files are installed, removed, or updated to rebuild the binary catalog index.

       --setup-keys
           Instead of showing journal

Title: journalctl Commands: Journal Data Management, Catalog Information, and Key Setup
Summary
This section outlines further `journalctl` commands. It details flushing data from `/run/log/journal/` to `/var/log/journal/` (`--flush`) and its reverse operation (`--relinquish-var`, `--smart-relinquish-var`), rotating journal files (`--rotate`), and checking internal header information (`--header`). It covers catalog listing and dumping (`--list-catalog`, `--dump-catalog`), updating the message catalog index (`--update-catalog`), and setting up keys (`--setup-keys`).