CSWlogrotate configuration
Ben Walton
bwalton at opencsw.org
Sat Jan 31 02:22:28 CET 2015
If CSWlogrotate is looking for config in /etc/logrotate.conf, that's a bug.
The config file should be in /etc/opt/csw/. Please file a bug against the
package if you determine this is what's happening.
Thanks
-Ben
On Fri Jan 30 2015 at 3:40:30 AM Dvorak Andreas <
Andreas.Dvorak at baaderbank.de> wrote:
> Dear all
>
>
>
> The logrotate does not rotate. Can you please help me?
>
>
>
> I have installed the package CSWlogrotate 3.8.3,REV=2012.11.14
>
> I don’t find the logrotate.conf, so I have to create an own file
> /etc/logrotate.conf.
>
>
>
> My file /etc/logrotate.conf:
>
> include /etc/logrotate.d
>
>
>
> cat /etc/logrotate.d/puppet
>
> /var/log/puppet/agent.log{
>
> daily
>
> missingok
>
> rotate 14
>
> compress
>
> delaycompress
>
> notifempty
>
> copytruncate
>
> }
>
>
>
> Running logrotate tells the the file /var/log/puppet/agent.log needs
> rotating but it does not do it.
>
> /opt/csw/sbin/logrotate -dfv /etc/logrotate.conf
>
> reading config file /etc/logrotate.conf
>
> including /etc/logrotate.d
>
> reading config file puppet
>
>
>
> Handling 1 logs
>
>
>
> rotating pattern: /var/log/puppet/agent.log forced from command line (14
> rotations)
>
> empty log files are not rotated, old logs are removed
>
> considering log /var/log/puppet/agent.log
>
> log needs rotating
>
> rotating log /var/log/puppet/agent.log, log->rotateCount is 14
>
> dateext suffix '-20150130'
>
> glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
>
> previous log /var/log/puppet/agent.log.1 does not exist
>
> renaming /var/log/puppet/agent.log.14.gz to
> /var/log/puppet/agent.log.15.gz (rotatecount 14, logstart 1, i 14),
>
> renaming /var/log/puppet/agent.log.13.gz to
> /var/log/puppet/agent.log.14.gz (rotatecount 14, logstart 1, i 13),
>
> renaming /var/log/puppet/agent.log.12.gz to
> /var/log/puppet/agent.log.13.gz (rotatecount 14, logstart 1, i 12),
>
> renaming /var/log/puppet/agent.log.11.gz to
> /var/log/puppet/agent.log.12.gz (rotatecount 14, logstart 1, i 11),
>
> renaming /var/log/puppet/agent.log.10.gz to
> /var/log/puppet/agent.log.11.gz (rotatecount 14, logstart 1, i 10),
>
> renaming /var/log/puppet/agent.log.9.gz to /var/log/puppet/agent.log.10.gz
> (rotatecount 14, logstart 1, i 9),
>
> renaming /var/log/puppet/agent.log.8.gz to /var/log/puppet/agent.log.9.gz
> (rotatecount 14, logstart 1, i 8),
>
> renaming /var/log/puppet/agent.log.7.gz to /var/log/puppet/agent.log.8.gz
> (rotatecount 14, logstart 1, i 7),
>
> renaming /var/log/puppet/agent.log.6.gz to /var/log/puppet/agent.log.7.gz
> (rotatecount 14, logstart 1, i 6),
>
> renaming /var/log/puppet/agent.log.5.gz to /var/log/puppet/agent.log.6.gz
> (rotatecount 14, logstart 1, i 5),
>
> renaming /var/log/puppet/agent.log.4.gz to /var/log/puppet/agent.log.5.gz
> (rotatecount 14, logstart 1, i 4),
>
> renaming /var/log/puppet/agent.log.3.gz to /var/log/puppet/agent.log.4.gz
> (rotatecount 14, logstart 1, i 3),
>
> renaming /var/log/puppet/agent.log.2.gz to /var/log/puppet/agent.log.3.gz
> (rotatecount 14, logstart 1, i 2),
>
> renaming /var/log/puppet/agent.log.1.gz to /var/log/puppet/agent.log.2.gz
> (rotatecount 14, logstart 1, i 1),
>
> renaming /var/log/puppet/agent.log.0.gz to /var/log/puppet/agent.log.1.gz
> (rotatecount 14, logstart 1, i 0),
>
> copying /var/log/puppet/agent.log to /var/log/puppet/agent.log.1
>
> truncating /var/log/puppet/agent.log
>
> removing old log /var/log/puppet/agent.log.15.gz
>
> error: error opening /var/log/puppet/agent.log.15.gz: No such file or
> directory
>
>
>
> /var/log/puppet# ls -l
>
> total 29209
>
> -rw-r--r-- 1 root root 14913631 Jan 30 12:26 agent.log
>
>
>
> Best regards
>
> Andreas Dvorak
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20150131/297daa47/attachment.html>
More information about the users
mailing list