ausearch
A command for searching the Linux audit log by key, user, time or event, and printing whole events rather than single records.
In more detail
ausearch -k identity shows every event tagged with that key; -i turns numbers such as user IDs into names. It groups the records of each event together, which raw text searches do not.
Related terms
- auditd — The Linux audit daemon, which records kernel events such as system calls and file changes according to audit rules.
- audit rule — A line that tells the Linux audit system what to record, such as every execve call by a logged-in user or every write to /etc/shadow.
Taught in
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep