Logcheck(8)
π logcheck β the manual page, but make it make sense π
okay bestie, welcome to logcheck(8) from the System Manager's Manual. yes it's section 8, yes that means it's a sysadmin thing, and yes you're gonna slay it. let's go π«Ά
β¨ NAME β¨
logcheck β the program that scans your system logs for the interesting lines, so you don't have to sit there reading every single one like it's a group chat you got added to by accident π
β¨ SYNOPSIS β¨
logcheck [OPTIONS]
πΈ DESCRIPTION πΈ
so. the logcheck program? it helps you spot problems and security violations in your logfiles, automatically, and then it e-mails you the results periodically. main character behaviour, honestly. by default logcheck runs as an hourly cronjob just off the hour and after every reboot. no cap. πβ¨
logcheck supports three levels of filtering:
"paranoid"β for high-security machines running as few services as possible. β οΈ do NOT use this if you can't handle its verbose messages, like genuinely, it will talk a LOT."server"β this is the default, and it contains rules for many different daemons. π"workstation"β for sheltered machines, and it filters most of the messages. cozy vibes.
the way the ignore rules work is additive: "paranoid" rules are also included at level "server", and the "workstation" level includes both "paranoid" and "server" rules. so it's like a stacking situation. every level is bringing the previous levels' whole energy. π§
the messages reported get sorted into three layers:
- system events
- security events
- attack alerts
the verbosity of system events is controlled by which level you choose β paranoid, server or workstation. BUT β and this is important β security events and attack alerts are not affected by this. they don't care what level you picked, they're showing up regardless. π
π EXAMPLES π
logcheck can be invoked directly thanks to su(8) or sudo(8), which change the user ID. iconic.
the following example checks the logfiles without updating the offset and outputs everything to STDOUT:
sudo -u logcheck logcheck -o -t
π OPTIONS π
a summary of options is included below, and bestie, we are going through every single one. periodt.
-cCFG β overrule default configuration file.-dβ debug mode. π-hβ show usage information.-Hβ use this hostname string in the subject of logcheck mail.-lLOG β run logfile through logcheck.-LCFG β overrule default logfiles list.-DDIR β overrule default logfiles lists directory.-mMAIL β mail report to recipient. π§-oβSTDOUTmode, not sending mail.-pβ set the report level to"paranoid". brave of you honestly.-rDIR β overrule default rules directory.-Rβ adds"Reboot:"to the email subject line.-sβ set the report level to"server".-SDIR β overrule default state directory.-tβ testing mode does not update offset. π-Tβ do not remove theTMPDIR.-uβ enablesyslog-summary.-vβ print current version.-wβ set the report level to"workstation".
π FILES π
/etc/logcheck/logcheck.confis the main configuration file. β¨/etc/logcheck/logcheck.logfilesis the list of files to monitor./etc/logcheck/logcheck.logfiles.dis the directory of lists of files to monitor./usr/share/doc/logcheck-database/README.logcheck-database.gzfor hints on how to write, test and maintain rules. (yes it's gzipped, yes you have tozcatit, iykyk)
β EXIT STATUS β
0upon success π«Ά1upon failure π
π SEE ALSO π
π AUTHOR π
logcheck is developed by Debian logcheck Team at:
https://salsa.debian.org/debian/logcheck
this manual page was written by Jon Middleton. ty king π«‘
and that's the whole page bestie, Logcheck(8), from the System Manager's Manual, top to bottom, every option accounted for. go read your logs, drink some water, and remember: -o -t is your friend when you just wanna peek without touching anything. mwah πβ¨
π¦ where this page comes from
- debian trixie: logcheck 1.4.5+deb13u1 Β· GPL-2.0-only
- ubuntu questing: logcheck 1.4.5
- ubuntu resolute: logcheck 1.4.7build1 Β· GPL-2.0-only
- ubuntu stonking: logcheck 1.4.7build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms