Re: Script for checking TOP25 biggest objects ?

From: Andreas Reeh <A.Reeh@dont-contact.us>
Date: 24 Feb 1997 02:22:00 +0200

Hi *Mark*,

you wrote on 24 Feb 97 at 01:33 in "Re: Script for checking TOP25 biggest objects ?":

>> So does anybody have a script that checks the TOP 25 biggest objects or
>> something similar? I would like to run this dialy together with the
>> scripts provided on the Squid Homepage.
>
> sort -r -n +4 -5 /cache_dir/log | sed -n -e 25q | awk '{print $6}'

thanks a lot !

(I had to remove the -n option for sed, got a broken pipe with it)

I now changed this to my need for access.log:

sort -r -n +4 -5 access.log | sed -e 25q | awk '{print $5 " " $7}'

This will print a list if the biggest 25 objects containing the objectsize
and the URL.

ps:perhaps something fine for the FAQ?

  Andreas

--
Andreas Reeh = A.Reeh@WaD.org * 51545 Waldbroel * Germany * PGP welcome
More info, public key, geek-code and other email and talk addresses at
http://www.wad.org/~andreas/   or   http://home.pages.de/~andreas.reeh/
Received on Sun Feb 23 1997 - 18:46:29 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:31 MST