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 03:10, 16 August 2013
, 10 years ago→Introducing Logrotate & friends
imported>Handy |
imported>Handy |
||
Line 52: | Line 52: | ||
A problem I face in trying to make this article about logrotate as simple as possible is that logrotate can be called in so many ways, & these ways are not mutually exclusive. | A problem I face in trying to make this article about logrotate as simple as possible is that logrotate can be called in so many ways, & these ways are not mutually exclusive. | ||
For example, logrotate can be called to run on a file, or multiple files in any combination or multiple of '''hourly, daily, weekly, monthly & yearly''', via scripts placed in the /etc/ in the already existing directories ''' | For example, logrotate can be called to run on a file, or multiple files in any combination or multiple of '''hourly, daily, weekly, monthly & yearly''', via scripts placed in the /etc/ in the already existing directories '''hourly daily weekly monthly''' the '''yearly''' directory can be added if required. '''crontab''' [http://www.adminschoice.com/crontab-quick-reference/] can be used to run logrotate or scripts as complex as a person needs. logrotate can be combined with other tools in anyway that a user can come up with to process these rotated files at any time & frequency. | ||
<br clear="all"/> | <br clear="all"/> | ||
Line 60: | Line 60: | ||
<br clear="all"/> | <br clear="all"/> | ||
== /etc/logrotate.conf & /etc/logrotate.d == | == /etc/logrotate.conf & /etc/logrotate.d == | ||