[squid-users] google drive up-/download size in squidlog

Amos Jeffries squid3 at treenet.co.nz
Tue May 24 18:32:35 UTC 2016


On 24/05/2016 8:15 p.m., Paul Buechler wrote:
> Hello there,
> 
> i've got the problem that i can't see the size of uploades to google
> drive in the access.log. Also the downloads aren't visible to me.
> Is this a problem caused by HTTPS? I tried changing the logformat but
> this didn't helped.

All the normal logs are recording teh data transferred to client. NOt
from client.

You need to create a custom logformat of your own which uses the %st
code instead of the %<st code.
<http://www.squid-cache.org/Doc/config/logformat/>

> 
> best regards,
> Paul
> 
> 
> systeminformation:
> 
> ubuntu 14.04.4 Server
> squid: Version 3.3.8
> squid logformat: logformat combined   %>a %[ui %[un [%tl] "%rm %ru
> HTTP/%rv" %>Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
> also tested:
> logformat squid%ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
> logformat common%>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh
> logformat referrer%ts.%03tu %>a %{Referer}>h %ru
> logformat useragent%>a [%tl] "%{User-Agent}>h"
> 

Please do not re-define the built in format names. Use a name of your
own. Unexpected and probably not good things will happen.

Amos



More information about the squid-users mailing list