Re: Analyze Scripts

From: Stephane Bortzmeyer <bortzmeyer@dont-contact.us>
Date: Thu, 26 Sep 96 11:27:29 +0200

On Wednesday 25 September 96, at 20 h 29, the keyboard of Morten Guldager
Jensen <Morten.Guldager.Jensen@uni-c.dk> wrote:

> I found it easy to hack small perl programs to extract the information I
> wanted from the access.log file...
>
> hierarchy.log and store.log looks simple as well.

The real problem is not to write the Perl script (I included one at the
end of this message, modified from a Harvest contributed script) but the
semantics. A good explanation of what NEIGHBOR_HIT, UDP_HIT_OBJ, etc
means could be useful.

Use the script like that:

% ./neighbors-and-parents.pl < logs/hierarchy.log

begin 751 neighbors-and-parents.pl.gz
M'XL("#A,2C("`VYE:6=H8F]R<RUA;F0M<&%R96YT<RYP;`#-5VU3VT80_FS]
MBHTL(BD1=G!"9L`A@P$#[AB<L4T[;9PZ9^F,U<@G12\!!^AO[^Y)PI:Q0])V
MIF60='YV;W=O;V]WK_RDFD1AU?-MYE5'KJ@&//04I0R]F`<3)C@<^&'\=<IG
M/+3@#R82%LY@YW4%#EC$'?`%'"7$]@N/(NY%%AQQ&[9V=K:5,DJ1@AQ7@!L!
M@][GQ'5@XO*0A?9D!IY_21S]"0<_B8,D3MFF+`[=:_#',/&C6+`I1U0XDIV+
M&/7'LX"CJL!+(HC]F'E115%"CN)##JK@5Y<\]H.X$GAJ77%\.#_A<2>(P3!4
ML>>J%J@1KFHO4DVSKBCN&`P-V8?"A!NEI(ED.N(A[$$*UI6[.0O-2[F.&X?]
M3C?G(IP8T06\2-9[S>[/S6Y/)[)R-7$]#L:;MU*(/?&#NE+:/T:^*/!<%%'2
M(AY^D>H#/X#]8X*N)BPN`$GH%7X[T0(=Y`PNBHB<\B=,RT;EF;E;K1KO?Z]^
M>&8:U5O-+,_U^E*25D.$%OT$YK@TN52^8J$`]9`)X<<0L!`7?-%MPT`E%0-5
M)6UW*&_LAJDL:4LB/(P0]**$35+HL3D=?Z<*C72Q_#/H1ZUN\["OFW![JY0`
M_Q9H_=99LW/1'WZ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