[Gllug] Sum trouble

Pete Ryland pdr at pdr.cx
Tue Apr 8 11:29:05 UTC 2003


On Tue, Apr 08, 2003 at 11:01:56AM +0100, Ian Moore wrote:
> cut -f10 -d" " access_log | awk '{sum += $1} END {print sum}'

BTW, there is absolutely no guarantee that field 10 is the bytes
transferred.

See http://www.digitalstratum.com/pglogd/index.php?page=readme#logformat for
an interesting discussion of possible problems encountered with the CLF.

Pete
-- 
Pete Ryland
http://pdr.cx/

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list