Discussion:
[systemd-devel] APIs for JournalD commands
Andreas Krueger
2021-05-06 09:00:11 UTC
Permalink
Hi Folks,

I have to write some tests to ensure the functionality of JournalD, which is used by a project I'm working on. For this I've found the APIs defined in header file <systemd/sd-journal.h> that can be used for many of my issues, but there is a gap between what this header file offers and what can be done by command 'journalctl'. For example, for verifying the sealing I haven't found any corresponding API in the header file. As well as for rotating.

So, is there somewhere a header file with the missing APIs? Or can verification (or rotation) be done only by command 'journalctl'?

With kind Regards,
Andreas
Lennart Poettering
2021-05-06 11:51:22 UTC
Permalink
Post by Andreas Krueger
Hi Folks,
I have to write some tests to ensure the functionality of JournalD,
which is used by a project I'm working on. For this I've found the
APIs defined in header file <systemd/sd-journal.h> that can be used
for many of my issues, but there is a gap between what this header
file offers and what can be done by command 'journalctl'. For
example, for verifying the sealing I haven't found any corresponding
API in the header file. As well as for rotating.
So, is there somewhere a header file with the missing APIs? Or can
verification (or rotation) be done only by command 'journalctl'?
Rotation can be triggered via a varlink API or via a UNIX process
signal. The varlink API is not officially documented, i.e. we don't
commit to API stability for it yet. The signal is documented on the
journald man page.

Verification is only available in journalctl.

Lennart

--
Lennart Poettering, Berlin

Loading...