ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

TCAT-AS-000250 - Remote hostname must be logged (Vuln ID: V-222940)


Article ID: 224400


Updated On:


CA Spectrum DX NetOps


What impact will this have if any?

We noticed it is not included out of the box for the localhost_access_log.


Release : 20.2, 21.2



This parameter can be added without causing any issues to Tomcat or Spectrum.

To add hostname to the localhost_access_logs:


Edit the $SPECROOT/tomcat/conf/server.xml file.

Modify the element(s) nested within the element(s).

Change the AccessLogValve setting to include %h in the pattern= statement.

prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %t %u "%r" %s %b" />

Save the file and restart Spectrum Tomcat.




Additional Information

Apache Tomcat 9 - Access Log Valve