brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: journalctl --since "1 hour ago" cuts the log down to what just happened

Journalctl
~/tips/tip-journalctl-since

journalctl --since "1 hour ago"

Shows only the log lines of the last hour, or any period you give it.

Reading a whole journal to find the one bad minute is slow. Give it a time window.

journalctl --since "1 hour ago"
journalctl --since "2026-11-23 08:00" --until "2026-11-23 08:30"
journalctl -u nginx --since today

The last line limits it to one service with -u. Times are in the machine’s local time, so check timedatectl first if the server runs on UTC and you do not.

Further reading: journalctl manual page

More Journalctl tips journalctl -k -g 'killed process' --since "2 days ago" journalctl _PID=1 -b ls -lh /var/log/journal/*/*.journal~ Storage=volatile sudo journalctl --setup-keys All Journalctl tips (81) All topics

Link