aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--udp514-journal.c4
1 files 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 */