SV-100503r1_rule
V-89853
SRG-OS-000474-GPOS-00219
VRAU-SL-001470
CAT II
10
Create or edit the /etc/logrotate.d/audit file and add the "daily" entry, such as:
/var/log/audit/audit.log {
compress
dateext
rotate 15
daily
missingok
notifempty
create 600 root root
sharedscripts
postrotate
/sbin/service auditd restart 2> /dev/null > /dev/null || true
endscript
}
Check for a "logrotate" entry that rotates audit logs.
# ls -l /etc/logrotate.d/audit
If it exists, check for the presence of the "daily" rotate flag:
# egrep "daily" /etc/logrotate.d/audit
The command should produce a "daily" entry in the logrotate file for the audit daemon.
If the "daily" entry is missing, this is a finding.
V-89853
False
VRAU-SL-001470
Check for a "logrotate" entry that rotates audit logs.
# ls -l /etc/logrotate.d/audit
If it exists, check for the presence of the "daily" rotate flag:
# egrep "daily" /etc/logrotate.d/audit
The command should produce a "daily" entry in the logrotate file for the audit daemon.
If the "daily" entry is missing, this is a finding.
M
3459