rendered paste body# Specify combined format but with initial vhost field
# Chosen logformat fields
# %v = VHOST
# %h = REMOTE_HOST
# %I = BYTES_IN (mod_logio)
# %O = BYTES_OUT (mod_logio)
# %b = BYTES_IN_RESPONSE_BODY (excluding headers)
# %>s = STATUSCODE
# %u = REMOTE_AUTHUSER
# %t = TIMESTAMP
# %r = FIRST_LINE_OF_REQUEST
# %{Referer}i = REFERRER
# %{User-Agent}i = USERAGENT
LogFormat "%v %h %I %O %b %>s %u %t \"%r\" \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
# Standard LogFormat line + vhost
# LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
# Dont log hits from the loadbalancer howareyou.html page
SetEnvIf Request_URI "howareyou\.html" loadbalancer=1
# Send apache error logs remotely using a syslog program field of "apache_error"
ErrorLog "|/usr/share/apache2/bin/logger-apache -u /dev/apache_log -d -t apache_error"
# Send apache access logs remotely using a syslog program field of "apache_access"
CustomLog "|/usr/share/apache2/bin/logger-apache -u /dev/apache_log -d -t apache_access" vhost_combined env=!loadbalancer