Re: Re: [squid-users] Logging the "real" Surftime

From: Henrik Nordstrom <[email protected]>
Date: Wed, 23 Apr 2003 08:31:37 +0200

On Wednesday 23 April 2003 08.14, Bruno Leonhardt wrote:
> Ok, thank's...
>
> ...real surftime is (IMHO) if a user was visiting a web-site longer
> than 5 Minutes ... maybe it's possible to get the first and the
> last time some data has been transfered - then comparing if this
> exceeds 5 Minutes ( 300 sec. ) and only this will be logged in an
> additionally log-file (with start/end-time, url, user, transfered
> data)....
>
> would that be possible ?

This information is easily derivable from access.log.

In access.log you have the time and duration of each users requests,
just write a small script which collects the information you want to
have from there. I would recommend using perl or awk for the purpose.

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [email protected]
Received on Wed Apr 23 2003 - 00:31:34 MDT

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