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

Re: Problema con logrotate



El 2012-06-28 15:49, Fabián Bonetti escribió:
On Thu, 28 Jun 2012 15:29:25 +0200
Maykel Franco Hernández <maykel@maykel.sytes.net> wrote:


Hola

proba con este parámetro

cambia este
size 1024M

por este
size=+1122304k


Saludos



Gracias por contestar. Lo he cambiado:

[root@toone logrotate.d]# cat web
/tmp/web-proxy.log {
    rotate 365
    daily
    missingok
    notifempty
    compress
    size=+1122304k
    create 640 apache apache
}




root@server logrotate.d]# logrotate -d /etc/logrotate.d/web
reading config file /etc/logrotate.d/web

Handling 1 logs

rotating pattern: /tmp/web-proxy.log  after 1 days (365 rotations)
empty log files are not rotated, only log files >= 1149239296 bytes are rotated, old logs are removed
considering log /tmp/web-proxy.log
  log does not need rotating


No entiendo por qué no lo rota, la regla se cumple....


Reply to: