Re: [squid-users] access.log simple question.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 10 Jun 2001 21:04:28 +0200

Change?

It is a small log processing program written in awk, designed to extract
amount of data received by each user.

awk is often the fastest tool available for simple log processing jobs
like this.

For instructions on how to run or write awk programs, see "man awk".

--
Henrik Nordstrom
Squid Hacker
edmund.li@alcatel.com.hk wrote:
> 
> Dear Henrik,
> 
> Can you tell me where do i need to do that ? where do I need to change ?
> 
> I am also dealing with this issue
> Best Regards
> Edmund
> 
> Henrik Nordstrom <hno@hem.passagen.se>
> Sent by: hno@hem.passagen.se
> 06/09/01 12:10 AM
> 
> 
>         To:     Jaime Menendez Parra <JMENENDEZ@softwareag.es>
>         cc:     squid-users@squid-cache.org
>         Subject:        Re: [squid-users] access.log simple question.
> 
> The following small awk program should do..
> 
> { usage[$8] += $5 }
> END {            for (user in usage) {
>                                  print user, usage[user]
>                  }}
> 
> If you want it per IP, replace $8 by $3
> 
> --
> Henrik Nordstrom
> Squid Hacker
> 
> Jaime Menendez Parra wrote:
> >
> > Hello,
> >
> > I need to extract from access.log only the users and bytes transferred
> per user.
> > Does anybody knows if exist some scripts to do that.
> >
> > Thanks in advanced.
Received on Sun Jun 10 2001 - 13:30:08 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:35 MST