Squid Logrotate

1. Squid Logrotate

Flavio de Mesquita Rodrigues
flaviofmr

(usa Fedora)

Enviado em 01/10/2009 - 18:02h

Boa Tarde,

Tenho o logrotate configurado para fazer o rotacionamento do log do squid, mas ele não está fazendo o rotacionamento corretamente. Dei o comando /usr/sbin/logrotate -d /etc/logrotate.d/squid e esta aparecendo a seguinte mensagem:

[root@fap12 squid]# /usr/sbin/logrotate -d /etc/logrotate.d/squid
reading config file /etc/logrotate.d/squid
reading config info for /hc/squid/access.log
reading config info for /hc/squid/cache.log
reading config info for /hc/squid/store.log

Handling 3 logs

rotating pattern: /hc/squid/access.log after 1 days (15 rotations)
empty log files are not rotated, old logs are removed
considering log /hc/squid/access.log
log needs rotating
rotating log /hc/squid/access.log, log->rotateCount is 15
renaming /hc/squid/access.log.15.gz to /hc/squid/access.log.16.gz (rotatecount 15, logstart 1, i 15),
renaming /hc/squid/access.log.14.gz to /hc/squid/access.log.15.gz (rotatecount 15, logstart 1, i 14),
renaming /hc/squid/access.log.13.gz to /hc/squid/access.log.14.gz (rotatecount 15, logstart 1, i 13),
renaming /hc/squid/access.log.12.gz to /hc/squid/access.log.13.gz (rotatecount 15, logstart 1, i 12),
renaming /hc/squid/access.log.11.gz to /hc/squid/access.log.12.gz (rotatecount 15, logstart 1, i 11),
renaming /hc/squid/access.log.10.gz to /hc/squid/access.log.11.gz (rotatecount 15, logstart 1, i 10),
renaming /hc/squid/access.log.9.gz to /hc/squid/access.log.10.gz (rotatecount 15, logstart 1, i 9),
renaming /hc/squid/access.log.8.gz to /hc/squid/access.log.9.gz (rotatecount 15, logstart 1, i 8),
renaming /hc/squid/access.log.7.gz to /hc/squid/access.log.8.gz (rotatecount 15, logstart 1, i 7),
renaming /hc/squid/access.log.6.gz to /hc/squid/access.log.7.gz (rotatecount 15, logstart 1, i 6),
renaming /hc/squid/access.log.5.gz to /hc/squid/access.log.6.gz (rotatecount 15, logstart 1, i 5),
renaming /hc/squid/access.log.4.gz to /hc/squid/access.log.5.gz (rotatecount 15, logstart 1, i 4),
renaming /hc/squid/access.log.3.gz to /hc/squid/access.log.4.gz (rotatecount 15, logstart 1, i 3),
renaming /hc/squid/access.log.2.gz to /hc/squid/access.log.3.gz (rotatecount 15, logstart 1, i 2),
renaming /hc/squid/access.log.1.gz to /hc/squid/access.log.2.gz (rotatecount 15, logstart 1, i 1),
renaming /hc/squid/access.log.0.gz to /hc/squid/access.log.1.gz (rotatecount 15, logstart 1, i 0),
copying /hc/squid/access.log to /hc/squid/access.log.1
truncating /hc/squid/access.log
error: unable to open /hc/squid/access.log.1 for compression

rotating pattern: /hc/squid/cache.log after 1 days (15 rotations)
empty log files are not rotated, old logs are removed
considering log /hc/squid/cache.log
log needs rotating
rotating log /hc/squid/cache.log, log->rotateCount is 15
renaming /hc/squid/cache.log.15.gz to /hc/squid/cache.log.16.gz (rotatecount 15, logstart 1, i 15),
renaming /hc/squid/cache.log.14.gz to /hc/squid/cache.log.15.gz (rotatecount 15, logstart 1, i 14),
renaming /hc/squid/cache.log.13.gz to /hc/squid/cache.log.14.gz (rotatecount 15, logstart 1, i 13),
renaming /hc/squid/cache.log.12.gz to /hc/squid/cache.log.13.gz (rotatecount 15, logstart 1, i 12),
renaming /hc/squid/cache.log.11.gz to /hc/squid/cache.log.12.gz (rotatecount 15, logstart 1, i 11),
renaming /hc/squid/cache.log.10.gz to /hc/squid/cache.log.11.gz (rotatecount 15, logstart 1, i 10),
renaming /hc/squid/cache.log.9.gz to /hc/squid/cache.log.10.gz (rotatecount 15, logstart 1, i 9),
renaming /hc/squid/cache.log.8.gz to /hc/squid/cache.log.9.gz (rotatecount 15, logstart 1, i 8),
renaming /hc/squid/cache.log.7.gz to /hc/squid/cache.log.8.gz (rotatecount 15, logstart 1, i 7),
renaming /hc/squid/cache.log.6.gz to /hc/squid/cache.log.7.gz (rotatecount 15, logstart 1, i 6),
renaming /hc/squid/cache.log.5.gz to /hc/squid/cache.log.6.gz (rotatecount 15, logstart 1, i 5),
renaming /hc/squid/cache.log.4.gz to /hc/squid/cache.log.5.gz (rotatecount 15, logstart 1, i 4),
renaming /hc/squid/cache.log.3.gz to /hc/squid/cache.log.4.gz (rotatecount 15, logstart 1, i 3),
renaming /hc/squid/cache.log.2.gz to /hc/squid/cache.log.3.gz (rotatecount 15, logstart 1, i 2),
renaming /hc/squid/cache.log.1.gz to /hc/squid/cache.log.2.gz (rotatecount 15, logstart 1, i 1),
renaming /hc/squid/cache.log.0.gz to /hc/squid/cache.log.1.gz (rotatecount 15, logstart 1, i 0),
copying /hc/squid/cache.log to /hc/squid/cache.log.1
truncating /hc/squid/cache.log
error: unable to open /hc/squid/cache.log.1 for compression


Alguem saberia me dizer onde eu estou errando, pois todo o dia eu tenho que limpar o meu access.log, pois ele trava o meu squid.


Obrigado


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts