SV-256710r888721_rule
V-256710
SRG-APP-000016-WSR-000005
VCLU-70-000005
CAT II
10
Navigate to and open:
/usr/lib/vmware-lookupsvc/conf/server.xml
Inside the <Host> node, find the "AccessLogValve" <Valve> node and replace the "pattern" element as follows:
pattern="%t %I [RemoteIP] %{X-Forwarded-For}i %u [Request] %h:%{remote}p to local %{local}p - %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]"
Restart the service with the following command:
# vmon-cli --restart lookupsvc
At the command prompt, run the following command:
# xmllint --xpath '/Server/Service/Engine/Host/Valve[@className="org.apache.catalina.valves.AccessLogValve"]/@pattern' /usr/lib/vmware-lookupsvc/conf/server.xml
Expected result:
pattern="%t %I [RemoteIP] %{X-Forwarded-For}i %u [Request] %h:%{remote}p to local %{local}p - %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]"
If the output does not match the expected result, this is a finding.
V-256710
False
VCLU-70-000005
At the command prompt, run the following command:
# xmllint --xpath '/Server/Service/Engine/Host/Valve[@className="org.apache.catalina.valves.AccessLogValve"]/@pattern' /usr/lib/vmware-lookupsvc/conf/server.xml
Expected result:
pattern="%t %I [RemoteIP] %{X-Forwarded-For}i %u [Request] %h:%{remote}p to local %{local}p - %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]"
If the output does not match the expected result, this is a finding.
M
5525