Apache Access Log Viewer 02.09.08
Hello,
I require a very simple script which will output the last 200 lines of our access_log.users file onto an http page on our web server.
We can’t use server-status for various reasons I will not go into, so instead we can simulate this by parsing the existing log onto a web page.
If possible we would like the log to be simplified and styled. An example line from the raw log:
mineuch.vndv.com 196.12.225.40 - - [25/Aug/2008:04:13:16 -0500] “GET /flash/main_flash7.swf?button=0 HTTP/1.1″ 200 1729679 “http://mineuch.vndv.com/” “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; IE7-01NET.COM-1.1; InfoPath.2; IE7-01NET.COM-1.1)” 355 1729941
Should be styled into a table like this:
http://jackcator.com/log/
I will provide you with the path to the log file, and SSH login if needed. I will also give you the path to the http directory where the script should output the results.
IMPORTANT: I do not want this to run as a background process. This should only generate if you load the page up in your browser since it only displays the last 200 lines after all.
Any questions just ask.
Thank you



