[squid-users] squid logrotate.d not deleting store.log

From: Lucia Di Occhi <[email protected]>
Date: Tue, 14 Dec 2004 02:58:17 +0000

squid2.5-Stable7, why are my store.log files not being deleted after they
are compressed? I have not edited anything beside having changed the
'rotate' to 30

Thanks.

-------

cat /etc/logrotate.d/squid

/var/log/squid/access.log {
    daily
    rotate 30
    copytruncate
    compress
    notifempty
    missingok
}
/var/log/squid/cache.log {
    daily
    rotate 30
    copytruncate
    compress
    notifempty
    missingok
}

/var/log/squid/store.log {
    daily
    rotate 30
    copytruncate
    compress
    notifempty
    missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
    postrotate
      /usr/sbin/squid -k rotate
    endscript
}

--------

[/var/log/squid]ls -al
total 3737872
drwxr-x--- 2 squid squid 4096 Dec 13 04:02 .
drwxr-xr-x 12 root root 4096 Dec 12 04:02 ..
-rw-r--r-- 1 squid squid 188156311 Dec 13 20:58 access.log
-rw-r--r-- 1 squid squid 0 Dec 13 04:02 access.log.0
-rw-r--r-- 1 squid squid 134 Dec 12 04:02 access.log.1
-rw-r--r-- 1 squid squid 13752010 Dec 4 04:02 access.log.10.gz
-rw-r--r-- 1 squid squid 1397801 Dec 13 04:02 access.log.1.gz
-rw-r--r-- 1 squid squid 2752182 Dec 12 04:02 access.log.2.gz
-rw-r--r-- 1 squid squid 44354117 Dec 11 04:02 access.log.3.gz
-rw-r--r-- 1 squid squid 73082262 Dec 10 04:03 access.log.4.gz
-rw-r--r-- 1 squid squid 83088633 Dec 9 04:03 access.log.5.gz
-rw-r--r-- 1 squid squid 84461427 Dec 8 04:03 access.log.6.gz
-rw-r--r-- 1 squid squid 88409068 Dec 7 04:03 access.log.7.gz
-rw-r--r-- 1 squid squid 25303453 Dec 6 04:02 access.log.8.gz
-rw-r--r-- 1 squid squid 19650173 Dec 5 04:02 access.log.9.gz
-rw-r--r-- 1 squid squid 3856 Dec 13 20:46 cache.log
-rw-r--r-- 1 squid squid 0 Dec 13 04:02 cache.log.0
-rw-r--r-- 1 squid squid 0 Dec 12 04:02 cache.log.1
-rw-r--r-- 1 squid squid 4879 Dec 4 04:02 cache.log.10.gz
-rw-r--r-- 1 squid squid 368 Dec 13 04:02 cache.log.1.gz
-rw-r--r-- 1 squid squid 452 Dec 12 04:02 cache.log.2.gz
-rw-r--r-- 1 squid squid 429 Dec 11 04:02 cache.log.3.gz
-rw-r--r-- 1 squid squid 564 Dec 10 04:03 cache.log.4.gz
-rw-r--r-- 1 squid squid 435 Dec 9 04:03 cache.log.5.gz
-rw-r--r-- 1 squid squid 1775 Dec 8 04:03 cache.log.6.gz
-rw-r--r-- 1 squid squid 557 Dec 7 04:03 cache.log.7.gz
-rw-r--r-- 1 squid squid 443 Dec 6 04:02 cache.log.8.gz
-rw-r--r-- 1 squid squid 1564 Dec 5 04:02 cache.log.9.gz
-rw-r--r-- 1 root root 2185 Dec 2 14:18 squid.out
-rw-r--r-- 1 squid squid 185741008 Dec 13 20:58 store.log
-rw-r--r-- 1 squid squid 0 Dec 13 04:02 store.log.0
-rw-r--r-- 1 squid squid 0 Dec 12 04:02 store.log.1
-rw-r--r-- 1 squid squid 23774878 Dec 4 04:02 store.log.10.gz
-rw-r--r-- 1 squid squid 2667088 Dec 13 04:02 store.log.1.gz
-rw-r--r-- 1 squid squid 5314297 Dec 12 04:02 store.log.2.gz
-rw-r--r-- 1 squid squid 70204198 Dec 11 04:03 store.log.3.gz
-rw-r--r-- 1 squid squid 271767394 Dec 11 04:02 store.log.4
-rw-r--r-- 1 squid squid 111124379 Dec 10 04:03 store.log.4.gz
-rw-r--r-- 1 squid squid 424365720 Dec 10 04:03 store.log.5
-rw-r--r-- 1 squid squid 126381195 Dec 9 04:04 store.log.5.gz
-rw-r--r-- 1 squid squid 482022110 Dec 9 04:03 store.log.6
-rw-r--r-- 1 squid squid 126192143 Dec 8 04:03 store.log.6.gz
-rw-r--r-- 1 squid squid 477513745 Dec 8 04:03 store.log.7
-rw-r--r-- 1 squid squid 133479807 Dec 7 04:04 store.log.7.gz
-rw-r--r-- 1 squid squid 500824787 Dec 7 04:03 store.log.8
-rw-r--r-- 1 squid squid 44744581 Dec 6 04:02 store.log.8.gz
-rw-r--r-- 1 squid squid 176676863 Dec 6 04:02 store.log.9
-rw-r--r-- 1 squid squid 36173951 Dec 5 04:02 store.log.9.gz

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Received on Mon Dec 13 2004 - 19:59:35 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST