storm2k
04-25-2002, 10:42 PM
Hi, I have looked all in here and on the net for more specific info on parsing access logs for multiple user accounts. If I have 300 users on a server and want to have a "log" directory in each users home directory is there a script or a simple grep that will pull that users info from the raw access logs and split/parse the info out to the individual log directory in each users account so that it can then be viewed by the user with AWStats, Analog, etc. I know this has to be accomplished failry easily but cannot find any links or data giving the exact way of doing it. Any input would be greatly appreciated. OS is FreeBSD4.5 w/Apache Web Server.
Shyne
04-26-2002, 12:07 AM
You can just put the TransferLog directive in all of your virtualhosts.
storm2k
04-26-2002, 06:13 PM
The only problem with using the transferlog directive, is that for each an every virtual host entry that is used in the manner, you have another open file process. In time this will overload your server and create server slow down.
By parsing out the files with a script, it reduces overall server load AND permits the use of rewrite rules, that allow you to use a virtmap.txt type of setup for hosting entries (in which case the transferlog entry does not work at all).
The transferlog directive is fine for a small production server, where you are hosting a few accounts, but for a large application, is not such a wise idea.
storm2k
05-01-2002, 02:30 PM
Original post should have read "If I have a server running 3000+ users, yada, yada". The place I was at before was running upwards of 5000 users per server at times with no problems so there are no issues involved with the number of users per server as long as the servers are massive enough to handle it. Original question still exists, how to parse access log files to individual "log" directories in each users account without it spawning multiple processes to do it. It can be done, anyone out there hosting 2000+ users per server have any input on this?? Thanks!