in reply to Re: Re: Obtaining Apache logfile stats?
in thread Obtaining Apache logfile stats?
The quick and dirty approach would be to just carve it up on white space like you are doing with awk anyway. The conversion is straight forward. Use split or perl's -a option (as in my example above.)
Regardless of how you parse the input, you'll probably find it worthwhile to compute the statistics for every file accessed on one pass through your log. That's a lot more efficient than reading your whole log once for each file you want stats on. That's easy enough; just use a hash to maintain data for each filename as you traverse the log.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Obtaining Apache logfile stats?
by mvam (Acolyte) on Mar 25, 2004 at 23:14 UTC | |
by sauoq (Abbot) on Mar 26, 2004 at 00:41 UTC | |
by mvam (Acolyte) on Mar 26, 2004 at 16:54 UTC | |
by mvam (Acolyte) on Apr 01, 2004 at 23:33 UTC |