in reply to Binary Search Timestamps
Another option is to have a (daemon) process reading the log file (think tail -f); this could wake up say every 5 minutes, consume new lines, update counter bins, write out the statistics page or meta log-file.