> journalctl [OPTION…] [MATCH…]
Query the journal.
Source Options:
--system Show the system journal
--user Show the user journal for the current user
-M --machine=CONTAINER Operate on local container
-m --merge Show entries from all available journals
-D --directory=PATH Show journal files from directory
-i --file=PATH Show journal file
--root=PATH Operate on an alternate filesystem root
--image=PATH Operate on disk image as filesystem root
--image-policy=POLICY Specify disk image dissection policy
--namespace=NAMESPACE Show journal data from specified journal namespace
Filtering Options:
-S --since=DATE Show entries not older than the specified date
-U --until=DATE Show entries not newer than the specified date
-c --cursor=CURSOR Show entries starting at the specified cursor
--after-cursor=CURSOR Show entries after the specified cursor
--cursor-file=FILE Show entries after cursor in FILE and update FILE
-b --boot[=ID] Show current boot or the specified boot
-u --unit=UNIT Show logs from the specified unit
--user-unit=UNIT Show logs from the specified user unit
--invocation=ID Show logs from the matching invocation ID
-I Show logs from the latest invocation of unit
-t --identifier=ID Show entries with the specified syslog identifier
-T --exclude-identifier=ID Hide entries with the specified syslog identifier
-p --priority=RANGE Show entries within the specified priority range
--facility=FACILITY… Show entries with the specified facilities
-g --grep=PATTERN Show entries with MESSAGE matching PATTERN
--case-sensitive[=BOOL] Force case sensitive or insensitive matching
-k --dmesg Show kernel message log from the current boot
Output Control Options:
-o --output=STRING Change journal output mode (short, short-precise, short-iso,
short-iso-precise, short-full, short-monotonic, short-unix, verbose,
export, json, json-pretty, json-sse, json-seq, cat, with-unit)
--output-fields=LIST Select fields to print in verbose/export/json modes
-n --lines[=[+]INTEGER] Number of journal entries to show
-r --reverse Show the newest entries first
--show-cursor Print the cursor after all the entries
--utc Express time in Coordinated Universal Time (UTC)
-x --catalog Add message explanations where available
-W --no-hostname Suppress output of hostname field
--no-full Ellipsize fields
-a --all Show all fields, including long and unprintable
-f --follow Follow the journal
--no-tail Show all lines, even in follow mode
--truncate-newline Truncate entries by first newline character
-q --quiet Do not show info messages and privilege warning
--synchronize-on-exit=BOOL Wait for Journal synchronization before exiting
Pager Control Options:
--no-pager Do not start a pager
-e --pager-end Immediately jump to the end in the pager
Forward Secure Sealing (FSS) Options:
--interval=TIME Time interval for changing the FSS sealing key
--verify-key=KEY Specify FSS verification key
--force Override of the FSS key pair with --setup-keys
Commands:
-h --help Show this help
--version Show package version
-N --fields List all field names currently used
-F --field=FIELD List all values that a specified field takes
--list-boots Show terse information about recorded boots
--list-invocations Show invocation IDs of specified unit
--list-namespaces Show list of journal namespaces
--disk-usage Show total disk usage of all journal files
--vacuum-size=BYTES Reduce disk usage below specified size
--vacuum-files=INT Leave only the specified number of journal files
--vacuum-time=TIME Remove journal files older than specified time
--verify Verify journal file consistency
--sync Synchronize unwritten journal messages to disk
--relinquish-var Stop logging to disk, log to temporary file system
--smart-relinquish-var Similar, but NOP if log directory is on root mount
--flush Flush all journal data from /run into /var
--rotate Request immediate rotation of the journal files
--header Show journal header information
--list-catalog Show all message IDs in the catalog
--dump-catalog Show entries in the message catalog
--update-catalog Update the message catalog database
--setup-keys Generate a new FSS key pair
See the journalctl(1) man page for details.
Options (68)
| Option | Description | Source |
|---|---|---|
--system | Show the system journal | help |
--user | Show the user journal for the current user | help |
-M --machine=CONTAINER | Operate on local container | help |
-m --merge | Show entries from all available journals | help |
-D --directory=PATH | Show journal files from directory | help |
-i --file=PATH | Show journal file | help |
--root PATH | Operate on an alternate filesystem root | help |
--image PATH | Operate on disk image as filesystem root | help |
--image-policy POLICY | Specify disk image dissection policy | help |
--namespace NAMESPACE | Show journal data from specified journal namespace | help |
-S --since=DATE | Show entries not older than the specified date | help |
-U --until=DATE | Show entries not newer than the specified date | help |
-c --cursor=CURSOR | Show entries starting at the specified cursor | help |
--after-cursor CURSOR | Show entries after the specified cursor | help |
--cursor-file FILE | Show entries after cursor in FILE and update FILE | help |
-b --boot[=ID | Show current boot or the specified boot | help |
-u --unit=UNIT | Show logs from the specified unit | help |
--user-unit UNIT | Show logs from the specified user unit | help |
--invocation ID | Show logs from the matching invocation ID | help |
-I | Show logs from the latest invocation of unit | help |
-t --identifier=ID | Show entries with the specified syslog identifier | help |
-T --exclude-identifier=ID | Hide entries with the specified syslog identifier | help |
-p --priority=RANGE | Show entries within the specified priority range | help |
--facility FACILITY… | Show entries with the specified facilities | help |
-g --grep=PATTERN | Show entries with MESSAGE matching PATTERN | help |
--case-sensitive BOOL | Force case sensitive or insensitive matching | help |
-k --dmesg | Show kernel message log from the current boot | help |
-o --output=STRING | Change journal output mode (short, short-precise, short-iso, short-iso-precise, short-full, short-monotonic, short-unix, verbose, export, json, json-pretty, json-sse, json-seq, cat, with-unit) | help |
--output-fields LIST | Select fields to print in verbose/export/json modes | help |
-n --lines[=[+]INTEGER | Number of journal entries to show | help |
-r --reverse | Show the newest entries first | help |
--show-cursor | Print the cursor after all the entries | help |
--utc | Express time in Coordinated Universal Time (UTC) | help |
-x --catalog | Add message explanations where available | help |
-W --no-hostname | Suppress output of hostname field | help |
--no-full | Ellipsize fields | help |
-a --all | Show all fields, including long and unprintable | help |
-f --follow | Follow the journal | help |
--no-tail | Show all lines, even in follow mode | help |
--truncate-newline | Truncate entries by first newline character | help |
-q --quiet | Do not show info messages and privilege warning | help |
--no-pager | Do not start a pager | help |
-e --pager-end | Immediately jump to the end in the pager | help |
--interval TIME | Time interval for changing the FSS sealing key | help |
--verify-key KEY | Specify FSS verification key | help |
--force | Override of the FSS key pair with --setup-keys | help |
-h --help | Show this help | help |
--version | Show package version | help |
-N --fields | List all field names currently used | help |
-F --field=FIELD | List all values that a specified field takes | help |
--list-boots | Show terse information about recorded boots | help |
--list-invocations | Show invocation IDs of specified unit | help |
--list-namespaces | Show list of journal namespaces | help |
--disk-usage | Show total disk usage of all journal files | help |
--vacuum-size BYTES | Reduce disk usage below specified size | help |
--vacuum-files INT | Leave only the specified number of journal files | help |
--vacuum-time TIME | Remove journal files older than specified time | help |
--verify | Verify journal file consistency | help |
--sync | Synchronize unwritten journal messages to disk | help |
--relinquish-var | Stop logging to disk, log to temporary file system | help |
--smart-relinquish-var | Similar, but NOP if log directory is on root mount | help |
--flush | Flush all journal data from /run into /var | help |
--rotate | Request immediate rotation of the journal files | help |
--header | Show journal header information | help |
--list-catalog | Show all message IDs in the catalog | help |
--dump-catalog | Show entries in the message catalog | help |
--update-catalog | Update the message catalog database | help |
--setup-keys | Generate a new FSS key pair | help |