[squid-users] retrieve amount of traffic by username
Alex Rousskov
rousskov at measurement-factory.com
Tue Jun 6 13:40:18 UTC 2017
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.
More information about the squid-users
mailing list