One problem many long time linux users have with systemd is that it no longer stores system logs as plain text.

Instead you must use the command journalctl to look at the logs.

This has both bad and good attributes.

Here let’s focus on using the command

To view all system logs just run journalctl This will show all logs going back to the first day the sytem was installed. The logs will be showed with pagination such as less uses While that is powerful it makes finding what you want a bit tedious to wade through all your logs.

Fortunately journalctl has filters available

-S or –since This will show the logs since a date and time The date and time must be in the format YYYY-MM-DD HH:MM:SS the time can be ommitted for example journalctl -S 2025-12-28 09:17:16 or just `journalctl -S 2025-12-28

You can also use some keywords for example journalctl -S "today"

will show just todays logs

“yesterday” and “tomorrow” are also valid as well as things like 1 “hour ago”

==-p== shows info with a specific priority level example are emerg, alert , crit, err, warning, notice, info, and debug.

==-b== Shows info from the current boot only or -b -1 would show logs from the previous boot

==-n== tail the logs For example `journalctl -n 50 will show last 50 log entries add ==-f== to keep tailing the logs in realtime

==-u== show just entries for a particular service for example: journalctl -u sshd shows just the sshd service logs

If you don’t want pagination use –nopager This will be useful when redirecting output to a file

Journalctl and log file size

Unfortunately over a long time logs grow to fill a lot of space

There are two commands that help you mange this

journalctl --disk-usage will show you how much space is being used by your logs

sudo journalctl --vacuum-size 1.5G

will trim the files to a set size. Here i am setting to 1.5 Gigabytes

You could also set to for example 500M for 500 Megabytes