Proposed Module List Entry:
Logfile aupO Generate reports from various logfiles
The Logfile extension will help you generating various reports from
different server logfiles. In general there is no restriction in what
information you extract from the logfiles. But the current simple
report generator always lists the fields 'Bytes' and 'Records' for
a given index. This should be enough for most server logfiles. You
are free to misuse both as long as the fields contain numerical
values.
Here are some examples of what it can do:
File (sorted by Records) Bytes Records
============================================================================
/htbin/SFgate 254141 18.32% 30 31.58%
/freeWAIS-sf 165802 11.95% 22 23.16%
/SFgate/SFgate 717378 51.70% 8 8.42%
/SFgate/SFgate-small 1950 0.14% 7 7.37%
/icons 0 0.00% 4 4.21%
/~goevert 135489 9.77% 3 3.16%
/journals/SIGMOD 1239 0.09% 3 3.16%
/SFgate/ciw 0 0.00% 2 2.11%
/SFgate/multiple 3017 0.22% 1 1.05%
/search 4526 0.33% 1 1.05%
Domain (sorted by Bytes) Bytes Records
============================================================================
Germany 423051 30.49% 12 12.63%
Unresolved 253482 18.27% 8 8.42%
Israel 240606 17.34% 34 35.79%
Denmark 136115 9.81% 4 4.21%
Canada 135017 9.73% 3 3.16%
Network 67931 4.90% 6 6.32%
US Commercial 61634 4.44% 14 14.74%
US Educational 29125 2.10% 8 8.42%
Hong Kong 19092 1.38% 2 2.11%
Sweden 16168 1.17% 2 2.11%
Non-Profit 3470 0.25% 1 1.05%
Local 1780 0.13% 1 1.05%
Hour (sorted by Hour) Bytes Records
============================================================================
09 245093 17.66% 34 35.79%
10 438280 31.59% 19 20.00%
11 156730 11.30% 11 11.58%
12 255451 18.41% 16 16.84%
13 274521 19.79% 10 10.53%
14 17396 1.25% 5 5.26%
Date (sorted by Date) Bytes Records
============================================================================
960324 1387471 100.00% 95 100.00%
Install as usual with:
perl Makefile.PL
make
make test
make install
Enjoy
The module can take advantage of GetDate by Tom Christiansen or
ParseDate by David Muir Sharnoff <
[email protected]> if available.
Ulrich Pfeifer <
[email protected]>