sd-journal.xml revision 74d005783e355acc784d123024e33bbb66ef9ef1
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt This file is part of systemd.
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt Copyright 2012 Lennart Poettering
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt systemd is free software; you can redistribute it and/or modify it
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt under the terms of the GNU Lesser General Public License as published by
8a743600ddfcd97adbbd83f8e9f546ce7d365acbEvan Hunt the Free Software Foundation; either version 2.1 of the License, or
8a743600ddfcd97adbbd83f8e9f546ce7d365acbEvan Hunt (at your option) any later version.
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt systemd is distributed in the hope that it will be useful, but
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt WITHOUT ANY WARRANTY; without even the implied warranty of
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt Lesser General Public License for more details.
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt You should have received a copy of the GNU Lesser General Public License
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt along with systemd; If not, see <http://www.gnu.org/licenses/>.
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <refentryinfo>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <authorgroup>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt </authorgroup>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt </refentryinfo>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <refnamediv>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <refpurpose>APIs for submitting and querying log entries to and from the journal</refpurpose>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt </refnamediv>
8a743600ddfcd97adbbd83f8e9f546ce7d365acbEvan Hunt <refsynopsisdiv>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <funcsynopsis>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <funcsynopsisinfo>#include <systemd/sd-journal.h></funcsynopsisinfo>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt </funcsynopsis>
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <cmdsynopsis>
3916872f379457fe344afb02398a009701c5016aEvan Hunt <command>pkg-config --cflags --libs libsystemd-journal</command>
3916872f379457fe344afb02398a009701c5016aEvan Hunt </cmdsynopsis>
3916872f379457fe344afb02398a009701c5016aEvan Hunt </refsynopsisdiv>
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt <para><filename>sd-journal.h</filename> provides APIs
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt to submit and query log entries. The APIs exposed act
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt both as client for the
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt journal service and as parser for the journal files
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt <citerefentry><refentrytitle>sd_journal_print</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt <citerefentry><refentrytitle>sd_journal_stream_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
0994d3a21baeedf28cbf7e461b3bd8de5f9a6654Evan Hunt <citerefentry><refentrytitle>sd_journal_open</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <citerefentry><refentrytitle>sd_journal_get_realtime_usec</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
8a743600ddfcd97adbbd83f8e9f546ce7d365acbEvan Hunt <citerefentry><refentrytitle>sd_journal_add_match</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
71bd858d8ed62672e7c23999dc7c02fd16a55089Evan Hunt <citerefentry><refentrytitle>sd_journal_seek_head</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_cutoff_realtime_usec</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_usage</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_catalog</refentrytitle><manvolnum>3</manvolnum></citerefentry>
<citerefentry><refentrytitle>sd_journal_get_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry>
<citerefentry><refentrytitle>sd_journal_print</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_stream_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_open</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_data</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_realtime_usec</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_add_match</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_seek_head</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_cutoff_realtime_usec</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_usage</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_get_fd</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sd_journal_query_unique</refentrytitle><manvolnum>3</manvolnum></citerefentry>,