How do you search and report on audit logs?
IntermediateProductionUser Lifecycle, Auditing & Time Sync
Answer
sudo ausearch -k identity -ts today -i # -i interprets UIDs and syscalls
sudo ausearch -m USER_LOGIN --success no -ts recent
sudo ausearch -ua alice -ts yesterday
sudo aureport --summary
sudo aureport -au --failed # failed authentications
sudo aureport -x --summary # executables
More on User Lifecycle, Auditing & Time Sync
How do you manage Linux users across hundreds of servers?BeginnerWhat is SSSD?IntermediateWhat should happen in the offboarding process for an engineer with server access?IntermediateHow do you safely remove a local user?BeginnerHow should service accounts be created and governed?IntermediateHow do you review who has access to a server?Intermediate