PHTN-67-000059 - The Photon operating system must configure a cron job to rotate auditd logs daily - bash

Information

Audit logs are most useful when accessible by date, rather than size. This can be accomplished through a combination of an audit log rotation cron job, setting a reasonable number of logs to keep and configuring auditd to not rotate the logs on its own. This ensures that audit logs are accessible to the ISSO in the event of a central log processing failure.

Solution

If /etc/cron.daily/audit-rotate does not exist, run the following commands:

# touch /etc/cron.daily/audit-rotate
# chown root:root /etc/cron.daily/audit-rotate
# chmod 0700 /etc/cron.daily/audit-rotate

Open /etc/cron.daily/audit-rotate with a text editor.

Set its contents as follows:

#!/bin/bash
service auditd rotate

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_6-7_Y23M07_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-4, CAT|II, CCI|CCI-001849, Rule-ID|SV-239130r877391_rule, STIG-ID|PHTN-67-000059, Vuln-ID|V-239130

Plugin: Unix

Control ID: a2171d73b298b95d41da43ad010315e6a34b1ea72ddb2240783b0cba69f57efe