Code Comments
Programming Forum and web based access to our favorite programming groups.Being a total Perl noob I get tasked with some log parsing duties. The project involves parsing the apache access log. What I need to be able to do is get the "time served" data per hour per page.=20 Something like: script.pl <url> <time> would return all the logged instances of that url and how long it took to serve each page for the time requested. I was able to pull that data out using awk into a flat file, however that's not as efficient as having Perl read thru the file and store the data on the fly.. I just have no idea how to start.. does anyone have any ideas on this?
Post Follow-up to this message>>>>> "Christopher" == Christopher Gallimore <christopher.gallimore@attws.co m> writes: Christopher> Being a total Perl noob I get tasked with some log Christopher> parsing duties. The project involves parsing the apache Christopher> access log. What I need to be able to do is get the "time Christopher> served" data per hour per page. Either get Analog (for speedy parsing with lots of options, www.analog.cx), or roll something yourself with Apache::Log (a module you can find in the CPAN). -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training !
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.