Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

noob needs help
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?





Report this thread to moderator Post Follow-up to this message
Old Post
Christopher Gallimore
03-27-04 04:15 AM


Re: noob needs help
>>>>> "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
!

Report this thread to moderator Post Follow-up to this message
Old Post
Randal L. Schwartz
03-27-04 04:15 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:59 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.