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 --facility=auth,authpriv shows only login and security messages

Security
~/tips/tip-journalctl-facility-auth

journalctl --facility=auth,authpriv --since today

Filters the journal by syslog facility, for example login and privilege messages only.

Old syslog habits survive in the journal: every entry can carry a facility, and a couple of those are all about logins.

--facility= takes a comma separated list of syslog facility names or numbers. auth and authpriv hold messages about logins and privilege changes, which makes this a quick first look at who tried to get in. journalctl --facility=help prints the full list of names.

journalctl --facility=auth,authpriv --since today

The facility is set by the program that writes the entry, so a service that skips it will not appear here. Treat this as a shortcut and not as a complete audit.

Further reading: journalctl(1) manual page

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link