actually using the FIFO file works, but under high load, something Very Wrong 
happens, and squid starts either slowing down, or refuses connections.
  
  basically, I have:
  cache_access_log /tmp/squidlogs
  (and emulate_httpd_log on)
  
  where /tmp/squidlogs is:
  prw-r--r--  1 squid root 0 Jul  9 18:47 squidlogs
  
  and I'm using the perl/spread logging script provided by the people who made 
mod_log_spread
  (found here:   http://tinyurl.com/7fond)
 
 to send the requests to spread, like this:
  
  /bin/sh -c exec /usr/local/bin/error_log_spread.pl -h -g error -s 4809 < 
/tmp/squidlogs
  
  I'm using spreadlogd on the logging machine, and it's a very simple config:
  
  BufferSize = 65536
  Spread {
          Port = 4809
          Log {
                  RewriteTimestamp = CommonLogFormat
                  Group = access
                 File = /var/log/spread/squid-access_log
          }   
 
 I know that this isn't the spread-users list (I'll post this there, as well), 
but I'm wondering if the reason this doesn't work is on the squid/spread/OS 
side of things.   As soon as I turn on logging (it's commented out in 
squid.conf at the moment) squid quickly starts to take longer and longer to 
answer queries, and becomes unusable after a couple of minutes.
  
  Also:  these squids are being used as accelerator/surrogates, they're doing 
about 250 req/sec at peak.
  thanks for any help,
  john
 
 
 
----- Original Message ----
From: Henrik Nordstrom <[EMAIL PROTECTED]>
To: john allspaw <[EMAIL PROTECTED]>
Cc: Squid Users <squid-users@squid-cache.org>
Sent: Tue Aug  9 05:13:58 2005
Subject: Re: [squid-users] any updates/info on using spread with squid for 
logging ?

On Fri, 5 Aug 2005, john allspaw wrote:

> It would appear that the only way squid can log is to a file.

Correct.

>Even logging to a fifo with a pipe into the spread ring doesn't look
> like it works all that well.

Should work. If not the perl File::Tail module is excellent for following 
log files live, and it should not be very hard to use this to have the 
Squid logs sent to Spread.

Regards
Henrik

Reply via email to