Re: [squid-users] Custom log format and client source port

From: Visolve Squid <squid@dont-contact.us>
Date: Fri, 13 Oct 2006 19:10:56 +0530

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/
Received on Fri Oct 13 2006 - 07:41:06 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST