Command line: journalctl

The logging daemon of systemd (see systemd-journald). Not only it can view your logs, you can ask to view specific logs and delete some of them.

For more information, see journalctl.1 manual page.

Options

Examples

This tool is already comprehensive. Needs a comprehensive database of examples to fight against this scope.

Watch the logs from a specific unit at boot time

journalctl --user-unit borgbackup.service -fb

Delete the logs older than a month

journalctl --vacuum-time=1m

View the latest logs with helpful messages

journalctl -xe

Get the logs of a service unit from 2 boots ago

journalctl --boot -2 --user-unit borgbackup@personal-drive.service

Backlinks