I've finished a first pass at setting up per-blog traffic statistics. If you notice, you can now go to
http://blog.case.edu/your_blog/stats and get at your log files. The current week's log file will always be called
access_log and will be rotated on Sundays. 4 weeks worth of logs will stick around in
gzip'ed form located at
access_log.YYYYMMDD.gz. So, now, anyone can have at it; download their statistics; and run whatever log analysis tools they would like. And, it's easy enough to cron a daily shop to grab it a la:
perl -MLWP::Simple -e 'get("http://blog.case.edu/jms18/stats/access_log");'
And, then, obviously, add in whatever other code you want to perform your analysis.
Of course, we've already done some pretty graphs for you using AWStats. To view your stats, you can use the URL form:
http://blog.case.edu/stats/awstats.pl?config=your_blog.blog.case.edu. So, mine are at http://blog.case.edu/stats/awstats.pl?config=jms18.blog.case.edu. I plan on cleaning those URLs up via some mod_rewrite magic, so they end up looking like
http://blog.case.edu/stats/your_blog, but I haven't done that yet.
I just got mod_log_sql installed and configured recently, so the stats start off on Sunday (when I got it completely running). Not much there right now, is what I am trying to say. But, that will obviously change as time goes on.
If you have any feedback, questions, or thunderous praise; leave a comment.
[Update: I have the mod_rewrite directives working. You can now use a URL of the form
http://blog.case.edu/stats/your_blog_dir to access your blog's traffic statistics. So, for example, my stats are located at http://blog.case.edu/stats/jms18.]