[systemd-devel] How to completely clear journal?

David Strauss david at davidstrauss.net
Wed Oct 2 01:29:08 PDT 2013


On Wed, Oct 2, 2013 at 1:18 AM, Manuel Reimer
<manuel.spam at nurfuerspam.de> wrote:
> - I don't write to flash

Ah, yes, I misread your original post. I see now that the compression
needs to happen real-time.

> - What I want to do is to transfer the data, logged on the embedded system,
> to another host (server on the internet) on daily base. This is done via
> HTTP. The internet connection, used for this, isn't established all the time!

You can store the last cursor you had in each dump (even in memory
somewhere) and tell journalctl to start from that the next time using
--after-cursor=.

> - I need to transfer this data in a clearly readable format (plain text) as
> I want to read the log entries via webinterface.

Not that this matters anymore, but you could do this with the journal
gateway service. It allows reading journal files on a machine over the
web, whether the client is a human or machine.

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


More information about the systemd-devel mailing list