Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a PHP class to parse an access.log file [closed]

Let's say I have an Apache Web server, with the default access.log file for a website. I'm looking for a PHP class to dissect it and give me info. Better than that, I'd love a PHP class that would simply dissect the following line (as an example):

123.125.66.111 - - [19/Aug/2010:17:21:23 +0000] "GET /robots.txt HTTP/1.1" 404 409 "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"

Any ideas? thx in advance

like image 433
willbeeler Avatar asked Jan 11 '11 21:01

willbeeler


1 Answers

This is from what Ish Kumar said:

http://www.php-scripts.com/php_diary/012103.php3

Also, his search was a good one:

http://www.google.ca/search?sourceid=chrome&ie=UTF-8&q=php+parse+log+files

like image 144
willbeeler Avatar answered Oct 01 '22 19:10

willbeeler