6.2.2.4 Ensure system warns when audit logs are low on space
Audit#
Run the following command and verify the space_left_action is set to email, exec, single, or halt:
Verify the output is email, exec, single, or halt Example outputRun the following command and verify the admin_space_left_action is set to single - OR - halt:
Verify the output is single or halt Example output:Note: A Mail Transfer Agent (MTA) must be installed and configured properly to set space_left_action = email
Remediation#
Set the space_left_action parameter in /etc/audit/auditd.conf to email, exec, single, or halt: Example:
Set the admin_space_left_action parameter in /etc/audit/auditd.conf to single or halt: Example:
Note: A Mail Transfer Agent (MTA) must be installed and configured properly to set space_left_action = email