Information
sudo provides users with temporarily elevated privileges to perform operations, either as the superuser or another user.
Creating an audit log of users with temporary elevated privileges and the operation(s) they performed is essential to reporting. Administrators will want to correlate the events written to the audit trail with the records written to sudo 's log file to verify if unauthorized commands have been executed.
Solution
Create audit rules
Edit the file /etc/security/audit_event and add the flag aa in the line starting with flags: . The file should contain a line similar to:
flags:aa