New: Customizable Access Log Format in WAS 8.0.0.2
New: Customizable Access Log Format in WAS 8.0.0.2
|
PM46717: HTTP CHANNEL ACCESS LOG CAN NOT BE CUSTOMIZED
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 8.0.0.2. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
댓글 없음:
댓글 쓰기