Splitting up Apache Logs for Subdomains

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 %h […]

Read more
Tomcat catalina.out Rotate

tail -f catalina.out becomes 2GB in size, tomcat crashes and fails to start without any error message. To avoid this scenario you should rotate catalina.out frequently. This article describes how to setup auto rotation of catalina.out on a linux/unix machine. How to automatically rotate catalina.out daily or when it becomes bigger than 5M 1. Create […]

Read more

Hit Counter provided by dental implants orange county