Configure access logging for internal Web server HTTP transport
In order to debug potential problems with using HTTP transport as an internal Web server, you may use the following access logging capabilities.
- To turn access logging on, add the following property to the transport section of the server.xml file, and set the value to false:
Property name: AccessLogDisable Values: True/False Default: Access log is disabled by default Scope: Virtual/Global- To specify your own access log file, add the following property to the transport section of the server.xml file:
Property name: AccessLog Value: <filename> Default Value: logs/<server instance>/http_access.logThe default access log file is logs/<server_instance>/http_access.log . Access log entries should have the format: <hostname or IP> <user agent> [<local time> -<status code>] <thread id> <http request> <status code> <bytecount> .
- To turn access logging off, add the following property to the transport section of the server.xml file and set the value to true:
Property name: AccessLogDisable Values: True/False Default: Access log is disabled by default Scope: Virtual/Global- Restart the server.
Results
If you have enabled access logging, there will be an access log in the location you specified.
Configure transports
Configure error logging for internal Web server HTTP transport
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.