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 00:08, 18 February 2017
, 7 years ago→How to set a maximum size limit for the journal
imported>Handy |
imported>Handy |
||
Line 73: | Line 73: | ||
Note: the name '''size'''.conf is user created. | Note: the name '''size'''.conf is user created. | ||
With your text editor create a file called '''size.conf''' in the following location '''/etc/systemd/journald.conf.d/size.conf''' The following sets the maximum file size to a 50 MB limit for the '''/var/log/journal''' . | With your text editor create a file called '''size.conf''' in the following location '''/etc/systemd/journald.conf.d/size.conf''' The following sets the maximum file size to a 50 MB limit for the '''/var/log/journal''' . ''(The SystemMaxUse=250M is for use with logrotate, which is looked at in the 2nd section of this page. Talk to papajoke on the forum if you need help with logrotate & systemd.)'' | ||
[Journal] | [Journal] |