Search squid archive

Re: retrieve amount of traffic by username

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/06/2017 06:10 AM, Janis Heller wrote:
> Is there some easy way, since I would need to store the
> generated traffic of a user per month (for being able to deny access on
> my custom backend script).

If parsing Squid access.log entries is easy for you, then there is an
easy way -- either parse the log Squid writes to disk or, as Amos,
suggested, add your own logging daemon that will parse the log entries
on the fly.


> So all I need to get is the traffic generated
> by a user when he's disconnecting.

HTTP does not have a concept of "user disconnect" beyond a single HTTP
transaction or, in some cases, a single HTTP connection. Each access log
entry is logged at the end of an HTTP transaction.

Alex.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux