2 .TH "SD\-JOURNAL" "3" "" "systemd 220" "sd-journal"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 sd-journal \- APIs for submitting and querying log entries to and from the journal
28 #include <systemd/sd\-journal\&.h>
31 .HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u
32 \fBpkg\-config \-\-cflags \-\-libs libsystemd\fR
36 provides APIs to submit and query log entries\&. The APIs exposed act both as client for the
37 \fBsystemd-journald.service\fR(8)
38 journal service and as parser for the journal files on disk\&.
41 \fBsd_journal_print\fR(3),
42 \fBsd_journal_stream_fd\fR(3),
43 \fBsd_journal_open\fR(3),
44 \fBsd_journal_next\fR(3),
45 \fBsd_journal_get_realtime_usec\fR(3),
46 \fBsd_journal_add_match\fR(3),
47 \fBsd_journal_seek_head\fR(3),
48 \fBsd_journal_get_cursor\fR(3),
49 \fBsd_journal_get_cutoff_realtime_usec\fR(3),
50 \fBsd_journal_get_cutoff_monotonic_usec\fR(3),
51 \fBsd_journal_get_usage\fR(3),
52 \fBsd_journal_get_catalog\fR(3)
54 \fBsd_journal_get_fd\fR(3)
55 for more information about the functions implemented\&.
57 Command line access for submitting entries to the journal is available with the
59 tool\&. Command line access for querying entries from the journal is available with the
64 These APIs are implemented as a shared library, which can be compiled and linked to with the
65 \fBlibsystemd\fR\ \&\fBpkg-config\fR(1)
70 \fBsd_journal_print\fR(3),
71 \fBsd_journal_stream_fd\fR(3),
72 \fBsd_journal_open\fR(3),
73 \fBsd_journal_next\fR(3),
74 \fBsd_journal_get_data\fR(3),
75 \fBsd_journal_get_realtime_usec\fR(3),
76 \fBsd_journal_add_match\fR(3),
77 \fBsd_journal_seek_head\fR(3),
78 \fBsd_journal_get_cursor\fR(3),
79 \fBsd_journal_get_cutoff_realtime_usec\fR(3),
80 \fBsd_journal_get_cutoff_monotonic_usec\fR(3),
81 \fBsd_journal_get_usage\fR(3),
82 \fBsd_journal_get_fd\fR(3),
83 \fBsd_journal_query_unique\fR(3),
84 \fBsd_journal_get_catalog\fR(3),