Is there any standard log format that includes time taken to serve the request? Can i just add it without breaking standard logfile parsers?

Posted on

Is there any standard log format that includes time taken to serve the request? Can i just add it without breaking standard logfile parsers? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about s %O “”%{Referer}i”” “”%{User-Agent}i”””” vhost_combined, , , , .

I would like to log the %D and %O log format strings in apache 2.

They are the time taken to serve a request in microseconds and the total bytes sent.

This is useful to generate stats of the server file serving speeds and see whether connectivity to certain IP segments may have trouble. I also plan on doing some load scaling based on the metrics. I also changed to daily logfile extension and daily log for better parsing.

Unfortunately none of the standard log formats seems to include those two values. Or is there one?

I would really like to keep the same log and keep it compliable to awstats, webalizer or various other tools that may arise.

So if i just change

LogFormat "%v:%p %h %l %u %t "%r"" %>

Solution :

Leave a Reply

Your email address will not be published.