On Tue, Sep 30, 2008 at 10:33:10AM +0330, Platoali wrote:
> I've a problem with squid log rotatation.
> 
> here is the content of my /var/log/squid:
> 
> # ls -l
> total 16940
> -rw-r----- 1 proxy proxy   661760 Sep 30 10:26 access.log
> -rw-r----- 1 proxy proxy     8104 Sep 30 10:26 cache.log
> -rw-r----- 1 proxy proxy 13429584 Sep 30 10:26 cache0
> -rw-r----- 1 proxy proxy  1468800 Sep 30 10:26 cache1
> -rw-r----- 1 proxy proxy   790704 Sep 30 10:22 cache2
> -rw-r----- 1 proxy proxy   246672 Sep 30 10:22 cache3
> -rw-r----- 1 proxy proxy   687345 Sep 30 10:26 store.log
> 
> when I issue the command: 
> 
> #squid -k rotate
> 
> The access.log and and cache.log didn't rotate.
> 
> does any one have any clue?

Do you have logfile_rotate set in your squid.conf? If this is 0,
then squid won't actually rotate the logfile, but instead just close
and re-open it. This is the default on Debian (and maybe other
distros), as it uses logrotate to actually rotate the logs.

Reply via email to