Re: [squid-users] Possible to log outgoing request/response details?

From: Andreas Bråthen <andreasb_at_mnemonic.no>
Date: Sun, 1 May 2011 15:58:57 +0200 (CEST)

Hmm .. I'm looking for the port-number used between the proxy and the external server.

As far as I can see, its only possible to define a log form that contains:
 - proxy port (%lp)
 - client port (%>p)

But _not_ server port (%<p)

Am I missing something here?

Andreas

----- Original Message -----
From: Amos Jeffries <squid3_at_treenet.co.nz>
To: squid-users_at_squid-cache.org
Sent: Sun, 01 May 2011 14:22:40 +0200 (CEST)
Subject: Re: [squid-users] Possible to log outgoing request/response details?

On 01/05/11 23:55, Andreas Bråthen wrote:
> Is it possible to configure Squid to log all outgoing
> request/responses (i.e. to servers), and not just client
> request/responses as it is by default?

grep -v -E "TCP_HIT" access.log >outgoing_server_requests.log

ie TCP_HIT are local cache storage fetches. All other requests involve
one server request even if it is just an IMS validation.

Other than that what are you looking for?...
   every DNS packet to be logged?
   every ICP packet?
   every HTCP packet?
   every ICMP packet?
   digest and netdb updates?
   peer monitoring requests?

Those are the only background traffics not indicated in access.log.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.12
   Beta testers wanted for 3.2.0.7 and 3.1.12.1
-- 
Andreas Bråthen                   E-mail : andreasb_at_mnemonic.no
mnemonic AS, Wergelandsveien 25   Phone  : +47 23 20 47 91
N-0167 Oslo, Norway               Mobile : +47 93 29 25 57
                                  Fax    : +47 23 20 47 01
PGP key A0444511 available at eu.pool.sks-keyservers.net
Received on Sun May 01 2011 - 13:59:01 MDT

This archive was generated by hypermail 2.2.0 : Mon May 02 2011 - 12:00:02 MDT