From 3c1668da6202f1ead3d4d3981b89e9da1a0e98e3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 18 Oct 2012 03:29:19 +0200 Subject: journal: add ability to list values a specified field can take in all entries of the journal The new 'unique' API allows listing all unique field values that a field specified by a field name can take in all entries of the journal. This allows answering queries such as "What units logged to the journal?", "What hosts have logged into the journal?", "Which boot IDs have logged into the journal?". Ultimately this allows implementation of tools similar to lastlog based on journal data. Note that listing these field values will not work for journal files created with older journald, as the field values are not indexed in older files. --- man/sd_journal_get_data.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'man/sd_journal_get_data.xml') diff --git a/man/sd_journal_get_data.xml b/man/sd_journal_get_data.xml index a7754129f0..6470f19cc6 100644 --- a/man/sd_journal_get_data.xml +++ b/man/sd_journal_get_data.xml @@ -70,7 +70,7 @@ - int sd_journal_restart_data + void sd_journal_restart_data sd_journal* j @@ -120,7 +120,7 @@ Note that the SD_JOURNAL_FOREACH_DATA() macro - may be used as a wrapper around + may be used as a handy wrapper around sd_journal_restart_data() and sd_journal_enumerate_data(). @@ -193,7 +193,8 @@ int print_fields(sd_journal *j) { sd-journal3, sd_journal_open3, sd_journal_next3, - sd_journal_get_realtime_usec3 + sd_journal_get_realtime_usec3, + sd_journal_query_unique3 -- cgit v1.2.3-54-g00ecf