I would like to pipe apache logs directly to a php file in httpd.conf using CustomLog Can this be done and how do I get the php file to read and parse the apache logs. I know there is an apache module called mod_log_sql, but to use that module, it require me to recompiled apache, which is something I am not really keen to do at this point of time. What I actually require is to pipe the logs to a php file, which will then insert the logs into a MySQL table. Anyone have any idea if there is any such script available. I know that some would be advise me to get a log parser or reader and parse the log files, but I would prefer to do this in httpd.conf using the CustomLog directive. Thanks.