UCF STIG Viewer Logo

Performance Charts must properly configure log sizes and rotation.


Overview

Finding ID Version Rule ID IA Controls Severity
V-239427 VCPF-67-000026 SV-239427r675004_rule Medium
Description
To ensure that the logging mechanism used by the web server has sufficient storage capacity in which to write the logs, the logging mechanism must be able to allocate log record storage capacity. Performance Charts properly sizes and configures log rotation during installation. This default configuration must be verified.
STIG Date
VMware vSphere 6.7 Perfcharts Tomcat Security Technical Implementation Guide 2022-01-03

Details

Check Text ( C-42660r675002_chk )
At the command prompt, execute the following command:

# grep -i "max" /etc/vmware-perfcharts/log4j.properties

Expected result:

log4j.appender.LOGFILE.MaxFileSize=5MB
log4j.appender.LOGFILE.MaxBackupIndex=10

If the output of the command does not match the expected result, this is a finding.
Fix Text (F-42619r675003_fix)
Open  /etc/vmware-perfcharts/log4j.properties with a text editor and add or change the following settings:

log4j.appender.LOGFILE.MaxFileSize=5MB
log4j.appender.LOGFILE.MaxBackupIndex=10