1.2.21 Configure Kubernetes API Server Maximum Audit Log Size

Information

Audit logs are rotated upon reaching a maximum size, which is set to 100 MB or greater by default.

OpenShift automatically rotates the log files. Retaining old log files ensures that you would have sufficient log data available for carrying out any investigation or correlation. If you have set file size of 100 MB and the number of old log files to keep as 10, you would have approximately 1 GB of log data that you could potentially use for your analysis.

Solution

The audit-log-maxsize parameter is set by default by Red Hat and not supported to change.

Impact:

Overriding can be done by using unsupportedConfigOverrides, it is NOT supported by Red Hat and will block future OpenShift Container Platform Upgrades.

See Also

https://workbench.cisecurity.org/benchmarks/20536

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-4, CSCv7|6.4

Plugin: OpenShift

Control ID: 2ba3169c3f6606431e8f27d54fbceb83f9193adb342c1fc2079ea4d4ee931b8f