diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-02-27 19:04:44 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-02-27 19:04:44 +0100 |
commit | b8069e0dd67e9178618dc4327c340a979a1b1649 (patch) | |
tree | bcdbd9bc20e834a1756474a92cf62d618af5a2d3 | |
parent | 34a77cde2423303da72ab773128a2ddcf41d416e (diff) | |
download | rsyslog-b8069e0dd67e9178618dc4327c340a979a1b1649.tar.gz rsyslog-b8069e0dd67e9178618dc4327c340a979a1b1649.tar.bz2 rsyslog-b8069e0dd67e9178618dc4327c340a979a1b1649.zip |
omjournal: add more syslog fields in journal call
-rw-r--r-- | plugins/omjournal/omjournal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/omjournal/omjournal.c b/plugins/omjournal/omjournal.c index 300aafea..c340287f 100644 --- a/plugins/omjournal/omjournal.c +++ b/plugins/omjournal/omjournal.c @@ -128,16 +128,21 @@ ENDtryResume BEGINdoAction msg_t *pMsg; + uchar *tag; + int lenTag; int sev; int r; CODESTARTdoAction pMsg = (msg_t*) ppString[0]; MsgGetSeverity(pMsg, &sev); + getTAG(pMsg, &tag, &lenTag); /* we can use more properties here, but let's see if there * is some real user interest. We can always add later... */ r = sd_journal_send("MESSAGE=%s", getMSG(pMsg), "PRIORITY=%d", sev, + "SYSLOG_FACILITY=%d", pMsg->iFacility, + "SYSLOG_IDENTIFIER=%s", tag, NULL); /* FIXME: think about what to do with errors ;) */ ENDdoAction |