SV-259084r1210413_rule
V-259084
SRG-APP-000358-AS-000064
VCPF-80-000081
CAT II
10
Navigate to and open:
/etc/vmware-syslog/vmware-services-perfcharts.conf
Create the file if it does not exist.
Set the contents of the file as follows:
#stats
input(type="imfile"
File="/var/log/vmware/perfcharts/stats.log"
Tag="perfcharts-stats"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#localhost_access_log
input(type="imfile"
File="/var/log/vmware/perfcharts/localhost_access_log.txt"
Tag="perfcharts-localhost_access"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#vmware-perfcharts-gc.log
input(type="imfile"
File="/var/log/vmware/perfcharts/vmware-perfcharts-gc.log.*.current"
Tag="perfcharts-gc"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#vmware-perfcharts-runtime.log
input(type="imfile"
File="/var/log/vmware/perfcharts/vmware-perfcharts-runtime.log.std*"
Tag="perfcharts-runtime"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#tomcat/catalina_log
input(type="imfile"
File="/var/log/vmware/perfcharts/tomcat/catalina.*.log"
Tag="perfcharts-tomcat-catalina"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#tomcat/localhost_log
input(type="imfile"
File="/var/log/vmware/perfcharts/tomcat/localhost.*.log"
Tag="perfcharts-tomcat-localhost"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
By default, a vmware-services-perfcharts.conf rsyslog configuration file includes the service logs when syslog is configured on vCenter, but it must be verified.
At the command prompt, run the following command:
# cat /etc/vmware-syslog/vmware-services-perfcharts.conf
Expected result:
#stats
input(type="imfile"
File="/var/log/vmware/perfcharts/stats.log"
Tag="perfcharts-stats"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#localhost_access_log
input(type="imfile"
File="/var/log/vmware/perfcharts/localhost_access_log.txt"
Tag="perfcharts-localhost_access"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#vmware-perfcharts-gc.log
input(type="imfile"
File="/var/log/vmware/perfcharts/vmware-perfcharts-gc.log.*.current"
Tag="perfcharts-gc"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#vmware-perfcharts-runtime.log
input(type="imfile"
File="/var/log/vmware/perfcharts/vmware-perfcharts-runtime.log.std*"
Tag="perfcharts-runtime"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#tomcat/catalina_log
input(type="imfile"
File="/var/log/vmware/perfcharts/tomcat/catalina.*.log"
Tag="perfcharts-tomcat-catalina"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#tomcat/localhost_log
input(type="imfile"
File="/var/log/vmware/perfcharts/tomcat/localhost.*.log"
Tag="perfcharts-tomcat-localhost"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
Note: If the entries for "deleteStateOnFileDelete" or "reopenOnTruncate" are not present, this is not a finding.
If the output does not match the expected result, this is a finding.
V-259084
False
VCPF-80-000081
By default, a vmware-services-perfcharts.conf rsyslog configuration file includes the service logs when syslog is configured on vCenter, but it must be verified.
At the command prompt, run the following command:
# cat /etc/vmware-syslog/vmware-services-perfcharts.conf
Expected result:
#stats
input(type="imfile"
File="/var/log/vmware/perfcharts/stats.log"
Tag="perfcharts-stats"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#localhost_access_log
input(type="imfile"
File="/var/log/vmware/perfcharts/localhost_access_log.txt"
Tag="perfcharts-localhost_access"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#vmware-perfcharts-gc.log
input(type="imfile"
File="/var/log/vmware/perfcharts/vmware-perfcharts-gc.log.*.current"
Tag="perfcharts-gc"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#vmware-perfcharts-runtime.log
input(type="imfile"
File="/var/log/vmware/perfcharts/vmware-perfcharts-runtime.log.std*"
Tag="perfcharts-runtime"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#tomcat/catalina_log
input(type="imfile"
File="/var/log/vmware/perfcharts/tomcat/catalina.*.log"
Tag="perfcharts-tomcat-catalina"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#tomcat/localhost_log
input(type="imfile"
File="/var/log/vmware/perfcharts/tomcat/localhost.*.log"
Tag="perfcharts-tomcat-localhost"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
Note: If the entries for "deleteStateOnFileDelete" or "reopenOnTruncate" are not present, this is not a finding.
If the output does not match the expected result, this is a finding.
M
5566