What are the performance risks of auditd and how do you control them?
AdvancedProductionUser Lifecycle, Auditing & Time Sync
Answer
Broad syscall rules (e.g. auditing every execve or open system-wide) on busy servers generate huge volumes and can consume significant CPU. If the backlog fills, the kernel either drops events or, with -f 2, panics. Control it:
- Scope rules with filters (
-F auid>=1000, specific paths,-F exit=-EACCES). - Tune
-b(backlog) and--backlog_wait_time. - Watch
auditctl -sforlostandbacklog. - Ship logs off-host (audisp plugins, Fluent Bit) and rotate (
max_log_file,num_logsinauditd.conf).
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