Re: [CentOS] Logrotate errors

2014-04-10 Thread Marios Zindilis
Logrotate, by default, runs daily (not hourly) and renames the log files that it rotates by appending to them the current date. In your case, you are running it hourly, so it only runs successfully only once a day. The second time that it will attempt to run in the same day, it will find that

Re: [CentOS] Logrotate errors

2014-04-10 Thread Steven Tardy
http://svn.fedorahosted.org/svn/logrotate/tags/r3-8-5/logrotate.8 shows hourly as a .conf option was added to 3.8.5... current centos 6 version is logrotate-3.7.8-17.el6.x86_64 centos6$ man logrotate: dateformat format_string Specify the extension for dateext using the

Re: [CentOS] Logrotate errors

2014-04-10 Thread C. L. Martinez
Yep, Marios and Steven are right ... I have changed dateformat for one log file and I have done another test changing time rotations ... And all works ok. Many thanks for your help. On Fri, Apr 11, 2014 at 12:09 AM, Steven Tardy sjt5a...@gmail.com wrote:

[CentOS] Logrotate errors

2014-04-09 Thread C. L. Martinez
Hi all, I have a problem with logrotate and I don't know why. In /var/log/messages appears these errors: Apr 8 15:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1] Apr 8 16:01:01 plzfnsm02 logrotate: ALERT exited abnormally with [1] Apr 8 17:01:01 plzfnsm02 logrotate: ALERT exited

Re: [CentOS] Logrotate errors

2014-04-09 Thread John Doe
From: C. L. Martinez carlopm...@gmail.com destination /srv/www2/logs/viewer.log-20140409 already exists, skipping rotation I'd think logrotate does not expect to find an already existing half-rotated file? Maybe this file is supposed to be compressed '.gz'? Can you show ls -l