I thought it can cause problems manipulating (moving, renaming, editing...etc) the log file while the squid process has it open. That's what -k rotate is for, am I wrong? Your moving the file before rotating, wouldn't that cause an issue? - Nick -----Original Message----- From: Gregori Parker [mailto:gregori@xxxxxxxxxxxxxx] Sent: Wednesday, April 05, 2006 3:37 PM To: Jakob Curdes; Michael Coburn Cc: squid-users@xxxxxxxxxxxxxxx Subject: RE: Rotating Logs I recommend setting log_rotate to 0 and having a perl or shell script crontabbed to do the actual rotation. For example... # Shell script for rotating squid logfiles # - moves access.log and renames it access-$year$month$day$hour.log # - run this every hour currentdate=$(date +%y%m%d%H) logfile="access-$currentdate.log" mv /usr/squid/log/access.log /var/log_storage/$logfile /usr/local/squid/sbin/squid -k rotate -----Original Message----- From: Jakob Curdes [mailto:jc@xxxxxxxxxxxxxxx] Sent: Wednesday, April 05, 2006 12:11 PM To: Michael Coburn Cc: squid-users@xxxxxxxxxxxxxxx Subject: Re: Rotating Logs >I issue the following command > >/usr/sbin/squid -k rotate > >and nothing seems to happen. I have read in the docs that it should >change the log files but nothing seems to happen in /var/log/squid > >Am I missing something? > > More interesting than the compile options are the settings in the config file squid.conf. According to the compilation options you should find it in /etc, but beware : there might be several versions of you system. Make sure you are looking at the right one. Look at the configuration variable squid_rotate. Here is the excerpt of the explanation in the conf file : # TAG: logfile_rotate # Specifies the number of logfile rotations to make when you # type 'squid -k rotate'. The default is 10, which will rotate # with extensions 0 through 9. Setting logfile_rotate to 0 will # disable the rotation, but the logfiles are still closed and # re-opened. This will enable you to rename the logfiles # yourself just before sending the rotate signal. I suppose this is set to 0 so you see no rotation. Yours, Jakob Curdes --------------------- Confidentiality note The information in this email and any attachment may contain confidential and proprietary information of VistaPrint and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, please notify the sender immediately and to delete this email and any attachment from your system. ---------------------