Search squid archive

Re: Custom log format and client source port

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

 



Michele de Varda wrote:
Hello,
I have installed squid 2.5 stable 14 with the patch "Squid custom log format". I need to log source client port for distinguishing client connection behind NAT/PAT networks. In the patch sintax the source client port is defined with "%>p" but this function seems to not be yet implemented. Is it possible to know if anyone has implemented this feature?
Hello Varda,

You can customize the logformat easily in squid-2.6.

#logformat squid  %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
#logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
#logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
#logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh

Thanks,
Visolve Squid Team.
www.visolve.com/squid/


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

  Powered by Linux