sd-journal(3)


NAME

   sd-journal - APIs for submitting and querying log entries to and from
   the journal

SYNOPSIS

   #include <systemd/sd-journal.h>

   pkg-config --cflags --libs libsystemd

DESCRIPTION

   sd-journal.h provides APIs to submit and query log entries. The APIs
   exposed act both as client for the systemd-journald.service(8) journal
   service and as parser for the journal files on disk.

   See sd_journal_print(3), sd_journal_stream_fd(3), sd_journal_open(3),
   sd_journal_next(3), sd_journal_get_realtime_usec(3),
   sd_journal_add_match(3), sd_journal_seek_head(3),
   sd_journal_enumerate_fields(3), sd_journal_get_cursor(3),
   sd_journal_get_cutoff_realtime_usec(3),
   sd_journal_get_cutoff_monotonic_usec(3), sd_journal_get_usage(3),
   sd_journal_get_catalog(3), sd_journal_get_fd(3),
   sd_journal_has_runtime_files(3) and sd_journal_has_persistent_files(3)
   for more information about the functions implemented.

   Command line access for submitting entries to the journal is available
   with the systemd-cat(1) tool. Command line access for querying entries
   from the journal is available with the journalctl(1) tool.

THREAD SAFETY

   Functions that operate on the sd_journal object are thread agnostic ---
   given sd_journal pointer may only be used from one thread at a time,
   but multiple threads may use multiple such objects safely. Other
   functions --- those that are used to send entries to the journal, like
   sd_journal_print(3) and similar, or those that are used to retrieve
   global information like sd_journal_stream_fd(3) and
   sd_journal_get_catalog_for_message_id(3) --- are thread-safe and may be
   called from multiple threads in parallel.

NOTES

   These APIs are implemented as a shared library, which can be compiled
   and linked to with the libsystemd pkg-config(1) file.

SEE ALSO

   systemd(1), sd_journal_print(3), sd_journal_stream_fd(3),
   sd_journal_open(3), sd_journal_next(3), sd_journal_get_data(3),
   sd_journal_get_realtime_usec(3), sd_journal_add_match(3),
   sd_journal_seek_head(3), sd_journal_enumerate_fields(3),
   sd_journal_get_cursor(3), sd_journal_get_cutoff_realtime_usec(3),
   sd_journal_get_cutoff_monotonic_usec(3), sd_journal_get_usage(3),
   sd_journal_get_fd(3), sd_journal_query_unique(3),
   sd_journal_get_catalog(3), sd_journal_has_runtime_files(3),
   sd_journal_has_persistent_files(3), journalctl(1), sd-id128(3), pkg-
   config(1)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.