Difference: MyOwnSquid (44 vs. 45)

Revision 452019-05-14 - DaveDykstra

Line: 1 to 1
 
META TOPICPARENT name="InstallSquid"
Here is what is on this page:
Line: 28 to 28
 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
Changed:
<
<
so it's not much of a change.)
>
>
so it's not much of a change.) squid-3 and later do not have the hierarchy stoplist, so you can skip that.
  For squid-2.6 or earlier, the "hierarchy stoplist" line still needs to be changed, but instead of the
Line: 95 to 95
 cache_store_log none logformat awstats %>a %ui %un [%{%d/%b/%Y:%H:%M:%S}tl.%03tu %{%z}tl] "%rm %ru HTTP/%rv" %Hs %h %{cvmfs-info}>h" "%{Referer}>h" "%{User-Agent}>h"
Changed:
<
<
and then use "awstats" as the second parameter to the "acces_log" option.

Since the log files can get very big, we run a cron job every night to rotate the log files, keeping 10 days worth. The cron job runs a script that looks like:

>
>
and then use "awstats" as the second parameter to the "access_log" option, for example:
 
Changed:
<
<
#!/bin/bash

SQUID_DIR=/nthome/bjb/frontier/frontier-cache/squid FNCRON_DIR=/nthome/bjb/frontier/frontier-cache/utils/cron

$SQUID_DIR/sbin/squid -k rotate 2>&1 >> $FNCRON_DIR/daily.log

>
>
access_log /var/log/squid/access.log awstats
 
Changed:
<
<
You could also use a logrotate.d script.

Daily might not be enough, however. On heavily used squids we run another cron 4 times an hour that checks to see if access.log is greater than a chosen size and if so does an extra rotation.

>
>
Since the log files can get very big very fast, we run a cron job 4 times an hour that checks to see if access.log is greater than a chosen size and if so does an extra rotation, in addition to nightly rotations.
 

Enabling monitoring

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback