Enhanced Apache logging: request duration, balancer member, transferred bytes

This helps you to diagnose problems on the production environment if you are running Apache or Apache mod_balancer. Put to your <virtualhost>

# timestamp referer useragent, server time seconds/microseconds, transfered bytes input/output, which balancer was used
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" duration:%T/%D io:%I/%O balancer:%{BALANCER_WORKER_NAME}e"
TransferLog     /var/log/apache2/yoursite.log
More info

\"\" Subscribe to RSS feed Follow me on Twitter Follow me on Facebook Follow me Google+

One thought on “Enhanced Apache logging: request duration, balancer member, transferred bytes

  1. Pingback: Importing Apache log file with performance information into OpenOffice / Excel using Python script

Leave a Reply

Your email address will not be published. Required fields are marked *