From 287982fc344b992e72e3c117769c4e0b153e6601 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 10 Jan 2018 10:54:55 +0100 Subject: set SYSLOG_IDENTIFIER to ip address ... and drop field IP_ADDRESS instead. --- udp514-journal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/udp514-journal.c b/udp514-journal.c index 0ed80d7..57553bf 100644 --- a/udp514-journal.c +++ b/udp514-journal.c @@ -46,8 +46,8 @@ int main(int argc, char **argv) { } /* send to systemd-journald */ - sd_journal_send("MESSAGE=%s: %s", inet_ntoa(cliAddr.sin_addr), buffer, - "IP_ADDRESS=%s", inet_ntoa(cliAddr.sin_addr), + sd_journal_send("MESSAGE=%s", buffer, + "SYSLOG_IDENTIFIER=%s", inet_ntoa(cliAddr.sin_addr), NULL); /* count and update status */ -- cgit v1.2.3-54-g00ecf