Custom Apache log output for virtual host?

1 post / 0 new
#1 Sat, 01/23/2016 - 10:17
DoubleSpeed

Custom Apache log output for virtual host?

Can anyone advise how/where I set-up custom Apache log output for a virtual host using Virtualmin I have a host which has wildcard subdomains *.domain.com and I need to include the subdomain in the log output so we can analyse the traffic to each subdomain which isn't being reported currently I found these 2 guides:

http://serverfault.com/questions/283513/apache-customlog-to-log-full-url http://serverfault.com/questions/133892/logformat-for-catching-asked-hos...

Which seems to indicate I need to add:

%{Host}i

To the format/log output.