log external ip address in squid logs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

log external ip address in squid logs

--Ahmad--
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



say i have 10 ips with 10 ports

i would like to see the logs file with the external ip address that is matched with the acl ==> tcp_outgoing_address x.x.x.x yyy


i had a look on

http://www.squid-cache.org/Doc/config/logformat/
and did find that option .


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

hope to help

cheers

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: log external ip address in squid logs

Antony Stone
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.
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: log external ip address in squid logs

--Ahmad--
oh man , not sure how didnt i see it .

you correct , thank you !

> On Feb 12, 2018, at 6:34 PM, Antony Stone <[hidden email]> wrote:
>
> 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.
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users