| Field | Usage | example | Comments |
|---|---|---|---|
| MESSAGE=message | The human-readable message string for this entry. | journalctl MESSAGE='Failed unmounting /var.' | Looks like message has to be the exact message to be matched. No pattern or partial message seems to match. |
| PRIORITY | severity or verbosity level, based on syslog priority concept | journalctl PRIORITY=3 | syslog's severity levels |
| _COMM _EXE _CMDLINE |
The name, the executable path, and the command line of the process the journal entry originates from. | journalctl _COMM=pulseaudio | |
| _SYSTEMD_UNIT | systemd unit name (if any) |
|
Looks pretty similar to -u / --unit, but gives slightly different results |
| _TRANSPORT=value | How the entry was received by the journal service. value is one of :
|
+ between terms will combine the one before and the one after into a logical OR
| Flag | Usage |
|---|---|
| --disk-usage | Shows the current disk usage of all journal files : the sum of the disk usage of all archived and active journal files. |
| -f --follow | Show only the most recent journal entries, and continuously print new entries as they are appended to the journal (i.e. like tail -f) |
| --no-pager | Do not pipe output into a pager
a pager is a utility used to display text, scroll up/down, scroll 1line/1page, search, ..., such as less
|
| -o outputOption --output=outputOption |
Controls the formatting of the journal entries that are shown. Among available values : verbose |
| -r --reverse | reverse output : newest entries first |
| -S 'YYYY-MM-DD hh:mm:ss' --since='YYYY-MM-DD hh:mm:ss' |
Show entries on/newer than the specified timestamp. Missing time will be interpreted as 00:00:00, missing seconds will be interpreted as :00 |
| -u unit --unit=unit | Show messages for the specified systemd unit unit (list available units) |
| -U 'YYYY-MM-DD hh:mm:ss' --until='YYYY-MM-DD hh:mm:ss' |
Show entries on/older than the specified timestamp. Missing time will be interpreted as 00:00:00, missing seconds will be interpreted as :00 |
| --vacuum-files=finalNumberOfLogfiles | Remove archived journal files until there remain only finalNumberOfLogfiles logfiles this will leave the active journal files untouched
|
| --vacuum-size=finalLogsSize |
|
| --vacuum-time=timespan |
|
no pager, pleasein the first place, then piping everything into ... a pager .
| Flag | Usage |
|---|---|
| -a fileNumber | also print unpairable lines from file fileNumber, where fileNumber is 1 or 2, corresponding to file1 or file2 |
| -e replacement | replace missing (empty) input fields with replacement |
| -o formatOfOutputLine |
|
| -t char | use char as input and output field separator |
Joe Dalton Jack Dalton William Dalton Averell Dalton
Joe 23 Jack 22 William 21 Averell 20
Joe Dalton 23 Jack Dalton 22 William Dalton 21 Averell Dalton 20