Skip to content

Remote hostname must be logged.

An XCCDF Rule

Description

The access logfile format is defined within a Valve that implements the org.apache.catalina.valves.AccessLogValve interface within the /opt/tomcat/server.xml configuration file: The %h pattern code is included in the pattern element and logs the remote hostname. Including the hostname pattern in the log configuration provides useful information about the connecting host that is critical for troubleshooting and forensic investigations.

ID
SV-222940r960897_rule
Version
TCAT-AS-000250
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

As a privileged user on the Tomcat server:

Edit the $CATALINA_BASE/conf/server.xml file.

Modify the <Valve> element(s) nested within the <Host> element(s).