<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">You could process the logs and set some
rules about what period between transactions should count as a
single visit.<br>
ie if ip 123.123.1.23 made requests at <br>
9:01<br>
9:03<br>
9:15<br>
9:50<br>
9:51 and <br>
9:54,<br>
is this one visit of 53 minutes (total time 53 minutes) or <br>
3 visits of 2 minutes, 0 minutes and 4 minutes (total time 6
minutes) or<br>
2 visits of 14 minutes and 4 minutes (total time 18 minutes)<br>
<br>
Each of these calculations is defensible and easy to do with a
rather trivial program that reads the log.<br>
<br>
Ron<br>
<br>
On 10/02/2015 4:50 PM, Luis Miguel Silva wrote:<br>
</div>
<blockquote
cite="mid:CA+suCFg5V5UXiJDDT-b6VwqKV48L0zyVM4_zN_dV5oMDuNbbAg@mail.gmail.com"
type="cite">
<div dir="ltr">Dear all,
<div><br>
</div>
<div>I was wondering if there is a built in feature in Squid to
calculate the time spent on a website, per ip address (e.g. 32
minutes between 12pm and 1pm, 5 minutes between 1pm and 2pm)?
And, if not, how would you do it?</div>
<div><br>
</div>
<div>I immediately thought about using the log files for this
BUT, because we only log individual connections, how would you
guys conclude the amount of time spent per website? Would you,
for instance, for each 5 minutes, add 5 minute chunks IF there
was data flowing between the 5 minutes?</div>
<div><br>
</div>
<div>That would work but...Isn't there a more elegant way of
doing this?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Luis</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
squid-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Ron Wheeler
President
Artifact Software Inc
email: <a class="moz-txt-link-abbreviated" href="mailto:rwheeler@artifact-software.com">rwheeler@artifact-software.com</a>
skype: ronaldmwheeler
phone: 866-970-2435, ext 102</pre>
</body>
</html>