Squid Logs are not rotating

Chris Larson chrislfxp at gmail.com
Fri Aug 21 21:08:07 UTC 2009


Logs still do not rotate automatically, only if I issue the command
manually. Any ideas? Does it truly matter if the /var/logs/squid directory
is a mountpoint to another disk?

On Thu, Aug 13, 2009 at 5:03 PM, Chris Larson <chrislfxp at gmail.com> wrote:

> Actually I remarked out the pre-rotate commands and ran the command below
> and the logs rotated successfully. I will let this stay this way to see if
> it rotates again.
>
> Chris
>
>
>
> On Thu, Aug 13, 2009 at 3:25 PM, Preston Hagar <prestonh at gmail.com> wrote:
>
>> On Thu, Aug 13, 2009 at 1:37 PM, Chris Larson<chrislfxp at gmail.com> wrote:
>> > 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.
>> >
>>
>> Logrotate will not rotate logs from one device (drive) to another.  To
>> see the error, try running
>>
>> logrotate -f /etc/logrotate.d/squid
>>
>> You should get an error that says something about different devices.
>>
>> The only solution I have ever figured out to get around this is to
>> first have logrotate rotate the logs to a tmp directory somewhere on
>> the same device, then either have cron, or a logrotate postrotate
>> script move the rotated scripts from the tmp directory to the
>> directory on the other device using mv.
>>
>> Hope this helps out.  Try the logrotate command I suggested above and
>> if it gives a different error (than the different devices one) post it
>> to the list and hopefully someone can figure out any other issues.
>>
>>
>> Preston
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090821/e61bcc08/attachment.html>


More information about the ubuntu-users mailing list