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)

book

Article ID: 224400

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction


What impact will this have if any?

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

Environment


Release : 20.2, 21.2

 

Resolution


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.

$SPECROOT/tomcat/bin/stopTomcat.sh

$SPECROOT/tomcat/bin/startTomcat.sh

 

Additional Information



Apache Tomcat 9 - Access Log Valve
https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Logging