Why not use analog or webalizer and make the reports accessible through AOLserver? Or do you plan more fancy stuff with the data collected? In that case I'd look into the code of analog and store the results in Postgres and run your own scripts on top of the results.