New: Customizable Access Log Format in WAS 220.127.116.11
kgibm 0600027VAP Comments (2) Visits (10087)
In a previous post, I covered some of the ways to log per-HTTP response time information in WAS. Good news -- a new and more standard approach has been added in WAS 18.104.22.168 through PM46717. WAS has had NCSA logging -- which is most commonly know through the LogFormat that httpd/IHS uses by default in its access/error logs -- but the format in WAS was not customizable, and did not have response times. WAS 22.214.171.124 introduces a customizable format which includes %D: "The elapsed time of the request. Millisecond accuracy, microsecond precision."
To set this up, you'll need to make two changes and then restart the affected servers: 1) enable NCSA access logging on the desired HTTP channels, and 2) set a custom property with the format string.
Note: Whether or not you already have NCSA access logging enabled globally on the server, you must explicitly enable it on the HTTP channel to use the custom format:
If you clicked Apply, you'll still be on the HTTP channel page. From here:
$ cat /wor
Update (July 23, 2013): APAR 86708 fixes an issue with incorrect values of %D for persistent connections.