]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/hashmap.c
journal: add ability to list values a specified field can take in all entries of...
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2012 01:29:19 +0000 (03:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2012 01:35:18 +0000 (03:35 +0200)
commit3c1668da6202f1ead3d4d3981b89e9da1a0e98e3
treed4e2785f1dac02c19797373bb4342354e1958e9d
parent86b2e20a5e5abf222fb81edcb5d58d012e35cbaa
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.
15 files changed:
Makefile.am
man/sd-journal.xml
man/sd_journal_get_data.xml
src/journal/journal-authenticate.c
src/journal/journal-file.c
src/journal/journal-file.h
src/journal/journal-internal.h
src/journal/journalctl.c
src/journal/libsystemd-journal.sym
src/journal/sd-journal.c
src/journal/test-journal-stream.c
src/journal/test-journal.c
src/shared/hashmap.c
src/shared/hashmap.h
src/systemd/sd-journal.h