Web server reports time_taken in seconds.milliseconds (12.345)

Avatar
  • updated
  • Completed
Our Web server reports time_taken in seconds.milliseconds (12.345) How can I make this work in weblog expert? This can not be changed in the logs.. Any help appreciated.
Avatar
James Kmetz
Well... You were correct. I must had changed %T to %D for some reason..... Changed it back to %T and worked.. Thanks, sorry for the confusion.

That looks better... These are streams by the way... :-)

Avatar
Michael
Great, I'm glad that the feature works with your logs now.
Avatar
Michael
At the moment you can try to use the option in WebLog Expert to treat time taken in seconds. The problem is that it doesn't support the milliseconds part, so 12.345 will be shown as 12000 ms, and 0.567 will be shown as 0.

You can do it by choosing the Apache log format in Profile Properties > Log Files. Choose "Apache" as the log format, click the "Custom" button to the right of it, choose the custom format and enter the following format:

%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" - %T

In the next version we'll update the program so it will also recognize the milliseconds part.