[systemd-devel] How to completely clear journal?

David Strauss david at davidstrauss.net
Wed Oct 2 02:42:55 PDT 2013


On Wed, Oct 2, 2013 at 2:04 AM, Manuel Reimer
<manuel.spam at nurfuerspam.de> wrote:
> Another option seems to be to store a timestamp in memory and use --since.
> Maybe this is even more error proof as a cursor could maybe get invalid if
> the log really exceeds my 1M limit.

If your cursor's invalid, that probably means you've missed some
items. That might be worth knowing rather than silently handling. You
can always fall back to fetching all if the cursor has rolled out of
memory.

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


More information about the systemd-devel mailing list