[afnog] Squid Log Files

Stephane Bortzmeyer bortzmeyer at nic.fr
Wed Aug 2 18:09:13 EAT 2006


On Wed, Aug 02, 2006 at 02:33:37PM +0200,
 Wonder Chikohomero <wonder.chikohomero at gmail.com> wrote 
 a message of 60 lines which said:

> The second question is how do I rotate logs, have calamaris do a
> daily report.

Debian uses logrotate, like many Unix. The package should put a
configuration file in /etc/logrotate.d (Squid does it). If it does
not, do it yourself. For the record, here is the one for Squid on my
Debian machines:

/var/log/squid/*.log {
        daily
        compress
        delaycompress
        rotate 2
        missingok
        nocreate
        sharedscripts
        prerotate
                test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint
        endscript
        postrotate
                test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
        endscript
}



More information about the afnog mailing list