<font color="#888888">I am running squid on a Ubuntu system and had to move my squid logs to another drive which is mounted at /var/log/squid. The logs are not rotating and the access.log and store.log are filling up the disk.<br>
<br>squidmin@squid:/var/log/squid# cat /etc/logrotate.conf<br># see "man logrotate" for details<br># rotate log files weekly<br>weekly<br><br># keep 4 weeks worth of backlogs<br>rotate 4<br><br># create new (empty) log files after rotating old ones<br>
create<br><br># uncomment this if you want your log files compressed<br>#compress<br><br># packages drop log rotation information into this directory<br>include /etc/logrotate.d<br><br># no packages own wtmp, or btmp -- we'll rotate them here<br>
/var/log/wtmp {<br>    missingok<br>    monthly<br>    create 0664 root utmp<br>    rotate 1<br>}<br><br>/var/log/btmp {<br>    missingok<br>    monthly<br>    create 0664 root utmp<br>    rotate 1<br>}<br><br># system-specific logs may be configured here<br>
<br>And the logrotate squid file:<br><br>squidmin@squid:/etc/logrotate.d# cat squid<br>#<br>#       Logrotate fragment for squid.<br>#<br>/var/log/squid/*.log {<br>        daily<br>        compress<br>        delaycompress<br>
        rotate 2<br>        missingok<br>        create 640 proxy proxy<br>        sharedscripts<br>        prerotate<br>                test ! -x /root/scripts/proxybackup.sh || /root/scripts/proxybackup.sh<br>                test ! -x /etc/srg/srg || /etc/srg/srg<br>
                test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint<br>        endscript<br>        postrotate<br>                test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate<br>        endscript<br>}<br><br>
squidmin@squid:/var/log/squid# ll<br>total 3085817<br>-rw-r----- 1 proxy proxy 1272614726 2009-08-13 13:25 access.log<br>-rw-r----- 1 proxy proxy   38036728 2009-06-03 09:29 access.log.1<br>-rw-r----- 1 proxy proxy      66266 2008-10-20 06:32 access.log.2.gz<br>
-rw-r----- 1 proxy proxy     593572 2009-08-13 13:00 cache.log<br>-rw-r----- 1 proxy proxy       9370 2009-06-03 09:23 cache.log.1<br>-rw-r----- 1 proxy proxy        212 2008-10-19 06:35 cache.log.2.gz<br>-rw-r----- 1 proxy proxy     439397 2009-08-13 08:01 squidGuard.log<br>
-rw-r----- 1 proxy proxy      28070 2009-06-03 09:29 squidGuard.log.1<br>-rw-r----- 1 proxy proxy       1589 2008-10-20 06:35 squidGuard.log.2.gz<br>-rw-r----- 1 proxy proxy 1791057805 2009-08-13 13:25 store.log<br>-rw-r----- 1 proxy proxy   53768036 2009-06-03 09:29 store.log.1<br>
-rw-r----- 1 proxy proxy     158509 2008-10-20 06:32 store.log.2.gz<br><br><br></font>