AULAST(8)
π AULAST β the audit-log last, bestie edition β¨
okay so real quick, this is aulast(8) from the System Administration Utilities section, and it's basically last but with the receipts from your audit logs. sit down, grab a boba, let's get into it π
πΈ NAME πΈ
aulast β a program similar to last
β¨ SYNOPSIS β¨
aulast [ options ]
π¦ DESCRIPTION π¦
okay bestie, so aulast prints out a listing of the last logged in users, and it does it just like last and lastb do. the way it works is it searches back through the audit logs β or through whatever audit log file you hand it β and shows you a list of all the users who logged in (and out) based on the range of time sitting in those audit logs. π
and listen, you can also give it names of users and tty's, and in that case aulast will only show you the entries that match the arguments you gave. narrowing the vibes, as one does.
the pseudo user reboot logs in every single time the system reboots. so like, last reboot is gonna show you a log of all the reboots since the log file was created. iconic behaviour fr fr.
the main difference a user is gonna notice? aulast prints events from oldest to newest, while last prints records from newest to oldest. opposite directions, same energy. also, the audit system is not notified each time a tty or pty is allocated, so you may not see quite as many records indicating users and their tty's. not me breaking the news but that's just how it is π
π OPTIONS π
--badβ report on the bad logins. the flops, if you will.--debugβ print debug messages tostderr.--extractβ write the raw audit records used to create the displayed report into a file namedaulast.login the current working directory.-ffile β use the file instead of the audit logs for input.--proofβ print out the audit event serial numbers used to determine the preceding line of the report. a serial number of0is a place holder and not an actual event serial number. these serial numbers can be used to examine the actual audit records in more detail. also, anausearchquery is printed that will let you find the audit records associated with that session. receipts on receipts, we love to see it π₯--stdinβ take audit records from stdin. the audit events must be in the raw format, no exceptions bestie.--ttytty β limit the report to a specific tty's activity. the names of ttys can be abbreviated. for example,0is the same astty0. shorthand queen π--username β limit the report to a specific user.
π EXAMPLES π
to see this month's logins:
ausearch --start this-month --raw | aulast --stdin
π SEE ALSO π
last(1), lastb(1), ausearch(8), aureport(8).
β AUTHOR β
Steve Grubb
and that's the whole page, bestie π«Ά this one's from Red Hat, dated June 2016, and the man page is AULAST(8). go log some stuff, stay audited, and remember: oldest to newest. periodt. π
β¨
π¦ where this page comes from
- alpine 3.22: audit-doc 4.0.3-r0 Β· LGPL-2.1-or-later
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit 4.2.1-3.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 9: audit 3.1.5-9.el9 Β· GPLv2+
- debian bookworm: auditd 1:3.0.9-1 Β· GPL-2.0-only
- debian trixie: auditd 1:4.0.2-2+deb13u1 Β· GPL-2.0-only
- fedora 43: audit 4.1.1-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: audit 4.2.1-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: audit 4.1.4-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: audit 4.2.1-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- opensuse-leap 16.0: audit 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit 4.0-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu jammy: auditd 1:3.0.7-1build1 Β· GPL-2.0-only
- ubuntu jammy: auditd 1:3.0.7-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu noble: auditd 1:3.1.2-2.1build1 Β· GPL-2.0-only
- ubuntu noble: auditd 1:3.1.2-2.1ubuntu0.1 Β· GPL-2.0-only
- ubuntu questing: auditd 1:4.0.5-1build1
- ubuntu resolute: auditd 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: auditd 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: auditd 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms