Date: Wed, 11 Feb 1998 02:12:17 -0500 From: "Mark Segal" <mark@club-web.com> To: "Kevin Day" <toasty@home.dragondata.com>, <isp@FreeBSD.ORG> Subject: Re: Large httpd log files Message-ID: <01bd36bc$62f64460$0201010a@mark.club-web.com>
next in thread | raw e-mail | index | archive | help
Yup it's quite simple... There are two things you must do. Firstly, in your virtual host directive in your httpd.conf make sure you define different logs for every virtual domain. like so. <VirtualHost 10.1.1.1> DocumentRoot /usr/home/yourname/public_html/ ServerName www.yourname.com ErrorLog logs/yourname-error_log TransferLog logs/yourname-access_log RefererLog logs/yourname-referer_log AgentLog logs/yourname-agent_log </VirtualHost> Secondly, you must configure analog to use those files instead.. i found the config files a pain so i just recompile it each time (now a script).. just change the file locations in the analhead.h -- Mark Segal mark@club-web.com System Admin > >All of my customer www traffic is logged to a single file. > >My customers want access to real-time stats, however, analog takes 20+ >minutes to analyze the log file towards the end of the month. (We erase the >log file on the 1st of the month). > >This makes analog's form/cgi interface completely useless as their web >browsers time out before they ever see the report. > >Does anyone here have any solutions to something like this that they've >worked out? > >Is it possible to make each user's traffic log to their own file, without >having to add a httpd.conf entry for each user? > >Kevin Day >DragonData > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01bd36bc$62f64460$0201010a>