[squid-users] log external ip address in squid logs

Antony Stone Antony.Stone at squid.open.source.it
Mon Feb 12 16:34:18 UTC 2018


On Monday 12 February 2018 at 16:36:58, --Ahmad-- wrote:

> Hello folks
> 
> i had a look on
> http://www.squid-cache.org/Doc/config/logformat/
> but i cant see the external ip address that used on squid

> i had a look on
> http://www.squid-cache.org/Doc/config/logformat/
> and did find that option .

Hm, that's confusing.

> i have this FORMAT below :
> logformat squid %tl %6tr %>a %>p %>la %>lp %Ss/%03Hs %<st %rm %ru %un %Sh/
> %<A %<a

I think <la is what you're looking for (and possibly <lp as well).


Antony.

-- 
You can spend the whole of your life trying to be popular,
but at the end of the day the size of the crowd at your funeral
will be largely dictated by the weather.

 - Frank Skinner

                                                   Please reply to the list;
                                                         please *don't* CC me.


More information about the squid-users mailing list