journald: when logging about dropped messages, include more meta data
authorLennart Poettering <lennart@poettering.net>
Mon, 30 Oct 2017 19:01:50 +0000 (20:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 16 Nov 2017 11:40:17 +0000 (12:40 +0100)
commit131819424db7cae7a4f0251cc675dabd2c9e0d49
treea22eb94725138fa4641b9dbaa246cf0de17f8b51
parent500cbc4e9e960cf7238148e47af4b35e930030ce
journald: when logging about dropped messages, include more meta data

When we drop messages of a unit, we log about. Let's add some structured
data to that. Let's include how many messages we dropped, but more
importantly, let's link up the message we generate to the unit we
dropped the messages from by using the "OBJECT" logic, i.e. by
generating OBJECT_SYSTEMD_UNIT= fields and suchlike, that "journalctl
-u" and friends already look for.

Fixes: #6494
src/journal/journald-kmsg.c
src/journal/journald-server.c
src/journal/journald-server.h
src/journal/journald-syslog.c
src/journal/journald.c