Search squid archive

Re: SQUID Logrotate problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 18, 2011 at 2:15 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
> On 18/07/11 23:02, Railic Njegos wrote:
>>
>> On Mon, Jul 18, 2011 at 12:57 PM, John Doe<jdmls@xxxxxxxxx>  wrote:
>>>
>>> From: Railic Njegos<railic.njegos@xxxxxxxxx>
>>>
>>>> i have problem, after uprade CentOS 5.5 to 5.6, Logrotate don't work
>>>> on two proxy servers. I have installed :
>>>> On first server , squid logs never rotated, config is here
>>>> On second server squid logs rotated every day . Config :
>>>> Before upgrade i have this  config and all working nice.
>>>> Can someone help me ?
>>>
>>> If you compare the two configuration files from your post, they are
>>> identical...
>>> Only difference with mines is the delaycompress.
>>>
>>> JD
>>>
>>
>> I know. But before upgrade this configuration working. But, they are
>> behave diferently
>> after upgrade. In other word,  no one now is not working well.
>>
>> Njegos
>
> Please explain the part about "don't work".
>
> Multiple log files with some empty?
>  * check for logfile_rotate directive. Must be set to 0 when an external log
> rotation software is used. Default if unset is >0.
>
> Squid failing to answer query afterwards?
>  * check for crashes on -k rotate in the new version
>
> Amos
> --
> Please be using
>  Current Stable Squid 2.7.STABLE9 or 3.1.14
>  Beta testers wanted for 3.2.0.9
>

On first server logs never rotated. And first log file become big.
When I rotate manually, i don't have any error.

On second server squid logs are rotated every day. Configuration
is working before upgrade and they are identical.


On first server , squid logs never rotated, config is here

cat /etc/logrotate.d/squid
/var/log/squid/access.log {
   weekly
   rotate 5
   copytruncate
   compress
   notifempty
   missingok
}
/var/log/squid/cache.log {
   weekly
   rotate 5
   copytruncate
   compress
   notifempty
   missingok
}

/var/log/squid/store.log {
   weekly
   rotate 5
   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
}

On second server squid logs rotated every day . Config :

/var/log/squid/access.log {
   weekly
   rotate 5
   copytruncate
   compress
   notifempty
   missingok
}
/var/log/squid/cache.log {
   weekly
   rotate 5
   copytruncate
   compress
   notifempty
   missingok
}

/var/log/squid/store.log {
   weekly
   rotate 5
   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
}

Njegos



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux