I would like to pipe apache logs directly to a php file in httpd.conf using CustomLog
Quote:
|
CustomLog "|/path/to/php_script" combined
|
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.
Recent comments
19 hours 3 min ago
1 day 8 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 20 hours ago
1 day 20 hours ago
2 days 1 hour ago
2 days 8 hours ago
2 days 9 hours ago
2 days 10 hours ago