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.

  1. 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
    

  2. 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.log
    

    The default access log file is...

    logs/server_instance/http_access.log

    Access log entries should have the format:

    <hostname > <user agent> [<local time> -<status code>] <thread id> <http request> <status code> <bytecount>

  3. 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
    

  4. Restart the server.

If you have enabled access logging, there will be an access log in the location you specified.