WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Configuring access logging for internal Web server HTTP transport

Why and when to perform this task

To debug potential problems with using the HTTP transport as an internal Web server, you can use the following access logging capabilities.

Steps for this task

  1. Turn access logging on. To turn access logging on, add the following custom property to the HTTP Transport's configuration settings, and set the value to false:
    
    Property name: AccessLogDisable 
    Values: True/False
    Default: Access log is disabled by default

    When you are ready to turn access logging off, set the value of the AccessLogDisable property back to true.

  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 or IP> <user agent> [<local time> -<status code>] <thread id> <http request> <status code> <bytecount>

    If you are going to be using access logging for multiple HTTP transports in a single HTTP server, make sure you specify a unique filename for the access log file associated with each HTTP transport.

  3. Restart the server.

Result

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



Related tasks
Configuring error logging for internal Web server HTTP transport
Configuring HTTP transports

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tcfg_intserver_access.html

© Copyright IBM Corporation 2003, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)