[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] looking to compare and concatenate Web logs



Folks,

I'd like some feedback on how to best concatenate two Common Log Format
Web server logs. I have two WebSTAR servers mapped to the same hostname.
Each has an access log. I'd like to concatenate them and use WebTrends to
generate a report. WT works fine with individual logs. It chokes on doing
both because the start dates are the same.

I saw a recipe in the Perl Cookbook on reading a line from the CLF file
into variables. Basically, I want to read the two files, compare lines on
the date and time 'fields' and write the lines to an output file
appropriately. I'm open to suggestions.

Here's some background information on my current level of expertise. I'm
beginning to explore MacPerl with a colleague and I'm tracking my
progress and keeping configuration notes on my personal Web site. Here's a
description of my working MacPerl environment:

http://www.voicenet.com/~corr/macsupt/macperl/environs.html

I have a basic script on reading a file and re-writing it to output on the
same site:

http://www.voicenet.com/~corr/macsupt/macperl/

Feel free to comment on my pages and/or my current log problem.

Thanks in advance.

Paul


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org