summaryrefslogtreecommitdiffstats
path: root/plugins/omjournal/omjournal.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-02-26 09:58:17 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-02-26 09:58:17 +0100
commit8aad93c582fcf9628a4d81da515f5fca31efca24 (patch)
tree920ac576c381b00f98943d01ef028ed04bf6b6bb /plugins/omjournal/omjournal.c
parentc6f2dea2152935d7ce7f1147979c096fbfa9cfa8 (diff)
downloadrsyslog-8aad93c582fcf9628a4d81da515f5fca31efca24.tar.gz
rsyslog-8aad93c582fcf9628a4d81da515f5fca31efca24.tar.bz2
rsyslog-8aad93c582fcf9628a4d81da515f5fca31efca24.zip
imuxsock: add capability to ignore messages from ourselfes
This helps prevent message routing loops, and is vital to have if omjournal is used together with traditional syslog.
Diffstat (limited to 'plugins/omjournal/omjournal.c')
-rw-r--r--plugins/omjournal/omjournal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/omjournal/omjournal.c b/plugins/omjournal/omjournal.c
index bb095ee2..300aafea 100644
--- a/plugins/omjournal/omjournal.c
+++ b/plugins/omjournal/omjournal.c
@@ -133,6 +133,9 @@ BEGINdoAction
CODESTARTdoAction
pMsg = (msg_t*) ppString[0];
MsgGetSeverity(pMsg, &sev);
+ /* 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,
NULL);