IBM Support

PM68250: The format within the HTTP Channel NCSA access logs can not be customized

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The access log can not be customized. Backport the
    functionality of PM46717 to V7
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Version 7.0 users                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: The format within the HTTP Channel      *
    *                      NCSA access logs can not be customized  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The HTTP Channel NCSA access logs only has two options for
    customization, COMMON and COMBINED. These options lack key
    information and customization.
    

Problem conclusion

  • To customize HTTP NCSA access logging utilize the new
    functionality of the HTTP channel custom property
    "accessLogFormat". It will now accept a space separated list
    of directives. Each individual directive can have quotes
    around it. Any directive, unless otherwise noted, will use the
    value of "-" if no value is found. The list of directives
    available:
    
        %a
            Remote IP Address
        %A
            Local IP Address
        %b
            Response size in bytes excluding headers
        %B
            Response size in bytes excluding headers
            Will print 0 instead of - if no value is found
        %C
            %{CookieName}C
            Prints the request cookie within the brackets or if
    the brackets are missing print them all
        %D
            The elapsed time of the request. Millisecond accuracy,
    microsecond precision
        %h
            Remote Host
        %i
            %{HeaderName}i
            HeaderName header value from the request
        %m
            Request Method
        %o
            %{HeaderName}o
            HeaderName header value from the response
        %q
            Output the query string with any password escaped
        %r
            First line of the request
        %s
            Status code of the response
        %t
            NCSA format of the start time of the request
        %{t}W
            Prints the current time when the message to the access
    log is queued to be logged in our NCSA format
        %u
            Remote user according to the WebSphere Specific $WSRU
    header
        %U
            URL Path, not including the query string
    
    To enable this new functionality please add the
    "accessLogFormat" custom property to the HTTP Channel, the
    panel on the administrative console can be found here:
            Application Servers > {Server Name} > Web Container
    Transport Chains > {Chain Name} > {HTTP Channel Name} > Custom
    Properties
    
            Also, please ensure the "Use chain-specific logging"
    option is enabled on the HTTP Channel where the previously
    mentioned property is enabled.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.25.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM68250

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-07-05

  • Closed date

    2012-08-21

  • Last modified date

    2012-08-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM68250

Modified date: 21 August 2012


Translate this page: