In that case you might want to consider something like pphlogger instead of mucking around with the apache logs. It'll be much simpler for you to get working and you've got the database functionality ...