I'm using journalctl for system logging. I want to have a log file to check what is happening with the process I'm running at anytime.

So I'm configuring the journald.conf file like this:


As I don't want the log file to be too large, I added the line SystemMaxUse=4G.

I read here that journalctl only deletes archived files (if I understood correctly):

This means that if there was enough free space before and journal files were created, and subsequently something else causes the file system to fill up, journald will stop using more space, but it will not be removing existing files to reduce the footprint again, either. Also note that only archived files are deleted to reduce the space occupied by journal files. This means that, in effect, there might still be more space used than SystemMaxUse= or RuntimeMaxUse= limit after a vacuuming operation is complete.

So, in that case would journalctl delete older records first from the file where I'm logging? If not, do you know other options I have for freeing the oldest records space in order to accept new records?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.