Configure access logging for internal Web server HTTP transports

To log information about client HTTP requests, the internal Web server HTTP transport supports access logging. To configure access logging, add these custom properties to one of the HTTP transports in your Web container:

Property name Valid Values Description Default Scope
AccessLogDisable true/false Enable or disable access logging true (logging disabled) Virtual/Global
AccessLog filename The location of the log file logs/app_server/http_access.log1  

1 Relative paths are qualified from the root directory of your instance. For example, for the default application server in the default instance of WebSphere Application Server, the default location for the log file is /QIBM/UserData/WebAS5/Base/default/logs/server1/http_access.log.

Access log entries should have this format:

hostname user_agent [local_time -status_code]
  thread_id http_request status_code bytecount

where:

Enable access logging

To enable access logging, follow these steps:

  1. Start the administrative console.
  2. In the topology tree, expand Servers and click Application Servers.
  3. Click the name of the application server for which you want to disable HTTP transport logging.
  4. On the application server page, click Web Container under Additional Properties.
  5. On the Web Container page, click HTTP Transports.
  6. On the HTTP Transports page, select one of the HTTP transports.
  7. On the transport page, click Custom Properties.
  8. To enable error logging, add the AccessLogDisable custom property to one of the HTTP transports in your Web container and set the value to false:
    1. Click New.
    2. For the property name, specify AccessLogDisable.
    3. For the value, specify false.
    4. Click OK.

  9. (Optional) Specify the AccessLog custom property:
    1. Click New.
    2. For the property name, specify AccessLog.
    3. For the value, specify a file name.
    4. Click OK.

  10. Save the configuration.
  11. Restart the application server.

Disable access logging

To disable access logging, follow these steps:

  1. Start the administrative console.
  2. In the topology tree, expand Servers and click Application Servers.
  3. Click the name of the application server for which you want to disable HTTP transport logging.
  4. On the application server page, click Web Container under Additional Properties.
  5. On the Web Container page, click HTTP Transports.
  6. On the HTTP Transports page, click the transport that includes the AccessLogDisable property.
  7. On the transport page, click Custom Properties.
  8. Click the ErrorLogDisable custom property.
  9. On the property page, specify a valu of true for the AccessLogDisable property.
  10. Save the configuration.
  11. Restart the application server.