Re: [squid-users] rotate bug?

From: lawrence wang <levity@dont-contact.us>
Date: Mon, 27 Mar 2006 13:03:07 -0500

i get the following in squid_cache.log when i rotate:

2006/03/27 18:01:30| storeDirWriteCleanLogs: Starting...
2006/03/27 18:01:31| Finished. Wrote 5793 entries.
2006/03/27 18:01:31| Took 0.0 seconds (2736419.5 entries/sec).
2006/03/27 18:01:31| logfileRotate: /var/log/cdn/http/squid_store.log
2006/03/27 18:01:31| helperOpenServers: Starting 50 'squirm' processes

even when i set logfile_rotate 0, it still doesn't handle access.log
correctly, and keeps writing to the old file after i rename it, until
i restart squid. i'm using aufs; does that make a difference?

On 3/25/06, Mark Elsen <mark.elsen@gmail.com> wrote:
> > hi, i was testing out squid -k rotate on squid-2.5STABLE12, and i
> > notice that cache.log and store.log rotate ok (*.0 files are created),
> > but access.log doesn't; furthermore, if i restart the server,
> > access.log is emptied, so i lose my old logs.
> >
> > if i rename the file after running rotate, it will keep writing to
> > that one and then write to a new file after restart.
> >
> > my access.log is named "squid_access.log" and it's in a non-standard
> > location; maybe that's why?
> >
>
> It can perfectly be in a none standard location , if so configured and or
> you are using log pointer directives in squid.conf.
>
> Is there anything in cache.log , when yoy try to rotate ?
> Look both in the end of the before-rotated cache.log (tail-ed) and in
> in the beginning
> of the new (head-ed) one.
>
> M.
>
Received on Mon Mar 27 2006 - 15:26:29 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST