Splitting up Apache Logs for Subdomains
1. Make sure your multiple virtual hosts log to the same log file.
example:@ your config file
ErrorLog “|/usr/sbin/rotatelogs -l /var/log/httpd/linux/error_log.%Y%m%d 86400?CustomLog logs/linux/access_log combinedioCustomLog “|/usr/sbin/rotatelogs -l /var/log/httpd/linux/access_log.%Y%m%d 86400? combinedio
2. Change your Apache LogFormatfrom let say:#LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” combined
to:LogFormat “%V […]
Recent Comments