New: Customizable Access Log Format in WAS 188.8.131.52
kgibm 0600027VAP Comments (2) Visits (1608)
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 184.108.40.206 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 220.127.116.11 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.