From 8aad93c582fcf9628a4d81da515f5fca31efca24 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 26 Feb 2013 09:58:17 +0100 Subject: 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. --- ChangeLog | 3 +++ doc/imuxsock.html | 12 ++++++++++++ plugins/imuxsock/imuxsock.c | 18 +++++++++++++++++- plugins/omjournal/omjournal.c | 3 +++ runtime/glbl.c | 3 ++- runtime/glbl.h | 6 ++++++ tools/syslogd.c | 11 +++++------ 7 files changed, 48 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67d02d60..9b8168c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ --------------------------------------------------------------------------- Version 7.3.7 [devel] 2013-02-?? - add support for writing to the Linux Journal (omjournal) +- 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. - field() function now supports a string as field delimiter - bugfix: mmjsonparse segfault if new-style config was used - bugfix: script == comparison did not work properly on JSON objects diff --git a/doc/imuxsock.html b/doc/imuxsock.html index a962f814..ee9e2a05 100644 --- a/doc/imuxsock.html +++ b/doc/imuxsock.html @@ -65,6 +65,12 @@ you must turn it on (via SysSock.Annotate and Annotate).
  • SysSock.IgnoreTimestamp [on/off]
    Ignore timestamps included in the messages, applies to messages received via the system log socket.
  • +
  • SysSock.IgnoreOwnMessages [on/off] (available since 7.3.7)
    +Ignores messages that originated from the same instance of rsyslogd. There usually +is no reason to receive messages from ourselfs. This setting is vital +when writing messages to the Linux journal. See omjournal +module documentation for a more in-depth description. +
  • SysSock.Use (imuxsock) [on/off] do NOT listen for the local log socket. This is most useful if you run multiple instances of rsyslogd where only one shall handle the system log socket. @@ -98,6 +104,12 @@ properties for the system log socket.