Path: usenet.cise.ufl.edu!newsfeeds.nerdc.ufl.edu!news.magicnet.net!news.maxwell.syr.edu!news-peer.sprintlink.net!news.sprintlink.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!uunet!in1.uu.net!news.neta.com!not-for-mail
From: Akira Hangai <[email protected]>
Newsgroups: comp.lang.perl.announce,comp.lang.perl.modules
Subject: ANNOUNCE: Apache::ParseLog module
Followup-To: comp.lang.perl.modules
Date: 6 Oct 1998 15:26:13 GMT
Organization: Internet Access Inc. NetA.Com
Lines: 35
Approved: [email protected] (comp.lang.perl.announce)
Message-ID: <[email protected]>
References: <[email protected]>
NNTP-Posting-Host: gadget.cscaper.com
X-Trace: news.neta.com 907687573 13055 206.67.186.3 (6 Oct 1998 15:26:13 GMT)
X-Complaints-To: [email protected]
NNTP-Posting-Date: 6 Oct 1998 15:26:13 GMT
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cise.ufl.edu comp.lang.perl.announce:149 comp.lang.perl.modules:4640

Apache::ParseLog Module
Object-oriented Perl extension for parsing Apache log files

Apache::ParseLog provides an easy way to parse the Apache log files,
using an object-oriented constructs. The data obtained using this module
are generic enough that it is flexible to use the data for your own
applications, such as CGI, simple text-only report generater, feeding
RDBMS, data for Perl/Tk-based GUI application, etc.

Feature:
1) Easy and portable log-parsing methods
2) Support for LogFormat/CustomLog introduced by Apache 1.3.x
(dynamically constructed regex)

Synopsis:
  use Apache::ParseLog;
  $base = new Apache::ParseLog($path_to_httpd_conf);
  $transferlog = $base->getTransferLog();
  %bytebydate = $transferlog->bytebydate();
  foreach (sort keys %bytebydate) {
      # print, "date: bytes", e.g., "09/25/1998:   123456 bytes"
      print "$_:\t$bytebydate{$_} bytes\n"
  }

I'll really appreciate comments, suggestions, opnions, etc.

URL (for now): http://206.30.13.158/perl
Should be available at CPAN shortly
(CPAN/by-module/Apache/Apache-ParseLog-1.00.tar.gz)

--
Akira Hangai <[email protected]>
1024/0F504319/60 F4 08 43 CD 08 2C 73  80 16 77 B2 A5 C7 E4 30