SV-259163r1210400_rule
V-259163
SRG-APP-000358-WSR-000063
VCRP-80-000073
CAT II
10
Navigate to and open:
/etc/vmware-syslog/vmware-services-rhttpproxy.conf
Create the file if it does not exist.
Set the contents of the file as follows:
#rhttpproxy log
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rhttpproxy.log"
Tag="rhttpproxy-main"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#rhttpproxy init stdout
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rproxy_init.log.stdout"
Tag="rhttpproxy-stdout"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#rhttpproxy init stderr
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rproxy_init.log.stderr"
Tag="rhttpproxy-stderr"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
By default, there is a vmware-services-rhttpproxy.conf rsyslog configuration file that 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-rhttpproxy.conf
Expected result:
#rhttpproxy log
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rhttpproxy.log"
Tag="rhttpproxy-main"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#rhttpproxy init stdout
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rproxy_init.log.stdout"
Tag="rhttpproxy-stdout"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#rhttpproxy init stderr
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rproxy_init.log.stderr"
Tag="rhttpproxy-stderr"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
Note: If the entries for "deleteStateOnFileDelete" and "reopenOnTruncate" do not exist, this is not a finding.
If the output does not match the expected result, this is a finding.
V-259163
False
VCRP-80-000073
By default, there is a vmware-services-rhttpproxy.conf rsyslog configuration file that 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-rhttpproxy.conf
Expected result:
#rhttpproxy log
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rhttpproxy.log"
Tag="rhttpproxy-main"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#rhttpproxy init stdout
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rproxy_init.log.stdout"
Tag="rhttpproxy-stdout"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
#rhttpproxy init stderr
input(type="imfile"
File="/var/log/vmware/rhttpproxy/rproxy_init.log.stderr"
Tag="rhttpproxy-stderr"
Severity="info"
Facility="local0"
deleteStateOnFileDelete="on"
reopenOnTruncate="on")
Note: If the entries for "deleteStateOnFileDelete" and "reopenOnTruncate" do not exist, this is not a finding.
If the output does not match the expected result, this is a finding.
M
5572