id: audit_settings_failure_notify
title: Configure Audit Failure Notification
discussion: |
  The audit service _MUST_ be configured to immediately print messages to the console or email administrator users when an auditing failure occurs.

  It is critical for the appropriate personnel to be made aware immediately if a system is at risk of failing to process audit logs as required. Without a real-time alert, security personnel may be unaware of a potentially harmful failure in the auditing system's capability, and system operation may be adversely affected.
check: |
  /usr/bin/grep -c "logger -s -p" /etc/security/audit_warn
result:
  integer: 1
fix: |
  [source,bash]
  ----
  /usr/bin/sed -i.bak 's/logger -p/logger -s -p/' /etc/security/audit_warn; /usr/sbin/audit -s
  ----
references:
  cce:
    - CCE-95131-9
  cci:
    - CCI-000140
    - CCI-001858
  800-53r5:
    - AU-5(2)
    - AU-5
  800-53r4:
    - AU-5
    - AU-5(2)
  srg:
    - SRG-OS-000047-GPOS-00023
    - SRG-OS-000344-GPOS-00135
  disa_stig:
    - APPL-26-001031
  800-171r3:
    - 03.03.04
  cmmc:
    - AU.L2-3.3.4
macOS:
  - '26.0'
tags:
  - 800-53r5_low
  - 800-53r5_moderate
  - 800-53r4_high
  - 800-53r5_high
  - 800-171
  - cnssi-1253_low
  - cnssi-1253_high
  - cmmc_lvl2
  - stig
  - cnssi-1253_moderate
severity: medium
mobileconfig: false
mobileconfig_info:
