Table of Contents

journald

Follow journal and show only entries with err priority

journalctl -p err -f

Valid priorities are (syslog):

Assigning stderr priorities

man 3 sd-daemon
fprintf(stderr, SD_NOTICE "Hello World!\n")

reduce journal size

# runtime
sudo journalctl --vacuum-size=50M
 
# permanent
echo SystemMaxUse=50M | sudo tee -a /etc/systemd/journald.conf

read journal from custom location

journalctl --directory=/mnt/var/lib/journal
journalctl --file=/mnt/var/lib/journal/user-1000@*