[systemd-devel] How to completely clear journal?

David Strauss david at davidstrauss.net
Wed Oct 2 00:22:37 PDT 2013


On Tue, Oct 1, 2013 at 11:48 PM, Manuel Reimer
<manuel.spam at nurfuerspam.de> wrote:
> So long story short: How to tell journald to just forget all previously
> logged stuff? Can I safely delete anything below /run/log/journal? Will this
> really clear the log (journalctl no longer returns anything after that)?

Do you really need to clear it? Presumably, the system has to meet its
memory constraints just before you dump the logs. What is the
advantage of freeing memory that the system has to account for,
anyway?

If it's just to know when the last dump was, you can use the journal's
cursor data or record a special log entry just before you dump.

-- 
David Strauss
   | david at davidstrauss.net
   | +1 512 577 5827 [mobile]


More information about the systemd-devel mailing list