rsyslog logrotate default size 1.5g?
Hi.
I don't understand where rotate size for /var/log/messages is configured. Thought it would be "size" in /etc/logrotate.d/syslog , but not. Is 1.5G a default for logrotate? Code:
[root@ec-prod-lb-2 ~]# ls -lh /var/log/messages* |
/etc/logrotate.d is subsidiary to /etc/logrotate.conf itself. The "defaults" are defined in /etc/logroate.conf but can be overriden in the specific /etc/logroate.d file.
In RHEL /etc/cron.daily calls the logrotate each day but since the logroate.conf starts with "weekly" the files are usually only actually rotated once a week. You can override time and size by adding them to /etc/logrotate.d/syslog. For example on our mail server we keep a month's worth of log at a time and keep them for a year so we modified the file to include "monthly" and "rotate 12". You could put size there if you wanted: Code:
/var/log/cron |
All times are GMT -5. The time now is 03:11 AM. |