Linux - Logs too big
03-Sep-06
In /etc/logrotate.d/* there are control files for various log file sets.
Most log files only rotate once a week. Yet the 'logrotate' runs daily.
- To limit size of log files:
- In appropriate control file (grep for your target log filename), add the line
-
- (to rotate if bigger than 10 MB on any day)
- to immediately do that test, say
- logrotate /etc/logrotate.conf