Difference between revisions of "Limit the size of .log files & the journal"
Views
Actions
Namespaces
Variants
Tools
Limit the size of .log files & the journal (view source)
Revision as of 05:00, 14 August 2013
, 10 years ago→My settings in logrotate.conf don't effect all of the .log files?
imported>Handy |
imported>Handy |
||
Line 87: | Line 87: | ||
Script files that are called via the logrotate.conf file take precedence over the global settings in logrotate.conf . That means that if you call a script from logrotate.conf that is located in the /etc/logrotate.d directory, then that script is more powerful than any of the global setting in logrotate.conf . | Script files that are called via the logrotate.conf file take precedence over the global settings in logrotate.conf . That means that if you call a script from logrotate.conf that is located in the /etc/logrotate.d directory, then that script is more powerful than any of the global setting in logrotate.conf . | ||
I use a script '''/etc.logrotate.d/rotate.logs''' that is set to work on all *.log files, & it does. The few that don't get rotated don't have a .log file extension. Therefore, they each need to have there own copy of the script block that is used | I use a script '''/etc.logrotate.d/rotate.logs''' that is set to work on all *.log files, & it does. The few that don't get rotated don't have a .log file extension. Therefore, they each need to have there own copy of the script block that is used on all the *.log files, with the only difference being that at the top of the script block it specifies each of their particular names instead of '''/var/log/*.log {''' . | ||
<br clear="all"/> | <br clear="all"/> |