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

From: <edmund.li@dont-contact.us>
Date: Sat, 9 Jun 2001 01:17:25 +0800

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 Fri Jun 08 2001 - 12:17:55 MDT

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