ausearch
linux
Query the Linux audit log for events. Part of the `audit` package. See also: `audit2why`, `audit2allow`, `aureport`.
More info →Options (6)
-m, --messagebooleanSearch for all SELinux AVC denial events
Example:
sudo ausearch {{[-m|--message]}} avc-c, --commbooleanSearch for events related to a specific executable
Example:
sudo ausearch {{[-c|--comm]}} {{httpd}}--uidbooleanSearch for events from a specific user
Example:
sudo ausearch {{[-ui|--uid]}} {{1000}}--startbooleanSearch for events in the last 10 minutes
Example:
sudo ausearch {{[-ts|--start]}} recent--successbooleanSearch for failed login attempts
Example:
sudo ausearch {{[-m|--message]}} user_login {{[-sv|--success]}} no-f, --filebooleanSearch for events related to a specific file
Example:
sudo ausearch {{[-f|--file]}} {{path/to/file}}Examples (7)
made by @shridhargupta | data from tldr-pages