On Sep 22, 2009, at 08:56 , J. Bakshi wrote: Rich Bowen wrote:On Sep 22, 2009, at 08:24 , J. Bakshi wrote:Well there is one side effect for the web hosting server. Generallythese type of servers host a huge no. of vhosts. And the CustomLogoptions then creates a serious performance issue. To cope with that analternative is to log all the vhost at a common file and then break itto different vhost specific logs. I am searching how to do that. anyhelp in that direction is always welcome.By adding the %v variable to the beginning of the LogFormat string,you'll have the hostname as the first thing in the log entry. You canthen split the logs after the fact using the utility calledsplit-logfile that comes withApache: http://httpd.apache.org/docs/2.2/programs/other.html Then you have conflicting requirements. I think that logging to a database - like the suggested mod_log_mysql - is the right way to do it. Your assessment that logging to a database would be slower than logging to the file system doesn't seem to be accurate. It's going to be a lot faster. |