From e8a71cd0d6ea72cb6495305286cb778b9d951e0c Mon Sep 17 00:00:00 2001
From: Rainer Gerhards Module Name: imtcp Author: Rainer Gerhards <rgerhards@adiscon.com> (custom-created) Multi-Ruleset Support: since 5.8.1
+ Description: This module uses a specific configuration of snmptrapd's tag values to
+obtain information of the original source system and the severity present inside the
+original SNMP trap. It then replaces these fields inside the syslog message.
+ Let's look at an example. Essentially, SNMPTT will invoke something like this:
+
+This message modification module will change the tag (removing the additional information),
+hostname and severity (not shown in example), so the log entry will look as follows:
+ Note that the placement of this module inside the configuration is important. All actions
+before this modules is called will work on the unmodified message. All messages after it's call
+will work on the modified message. Please also note that there is some extra power in case it
+is required: as this module is implemented via the output module interface, a filter
+can be used (actually must be used) in order to tell when it is called. Usually, the catch-all
+filter (*.*) is used, but more specific filters are fully supported. So it is possible to define
+different parameters for this module depending on different filters. It is also possible to
+just run messages from one remote system through this module, with the help of filters or
+multiple rulesets and ruleset bindings. In short words, all capabilities rsyslog offers
+to control output modules are also available to mmsnmptrapd.
+ Configuration Directives: Example: This enables to rewrite messages from snmptrapd and configures error and warning
+severities. The default tag is used.mmsnmptrapd message modification module
+logger -t snmptrapd/warning/realhost Host 003c.abcd.ffff in vlan 17 is flapping between port Gi4/1 and port Gi3/2
+
+
+2011-04-21T16:43:09.101633+02:00 realhost snmptrapd: Host 003c.abcd.ffff in vlan 122 is flapping between port Gi4/1 and port Gi3/2
+
+The following logic is applied to all message being processed:
+
+
+
+
+Caveats/Known Bugs:
+
+tells the module which start string inside the tag to look for. The default is
+"snmptrap/"
+
+This specifies the severity mapping table. It needs to be specified as a list. Note that
+due to the current config system no whitespace is supported inside the list, so be
+sure not to use any whitespace inside it.
+The list is constructed of Severtiy-Name/Severity-Value pairs, delimited by comma.
+Severity-Name is a case-sensitive string, e.g. "warning" and an associated
+numerical value (e.g. 4).
+Possible values are in the rage 0..7 and are defined in RFC5424, table 2. The
+given sample would be specified as "warning/4".
+If multiple instances of mmsnmptrapd are used, each instance uses the most recently
+defined $mmsnmptrapdSeverityMapping before itself.
+
+
+
+
[rsyslog.conf overview] +[manual index] [rsyslog site]
+This documentation is part of the rsyslog
+project.
+Copyright © 2011 by Rainer Gerhards and
+Adiscon.
+Released under the GNU GPL version 3 or higher.
Message modification modules are usually written for one specific task and thus +usually are not generic enough to be reused. However, existing module's code is +probably an excellent starting base for writing a new module. Currently, the following +modules existin inside the source tree +
String generator modules are used, as the name implies, to generate strings based
--
cgit
From c399118345dff8568613133054e98ddf46d67aa5 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
Please visit the rsyslog sponsor's page to honor the project sponsors or become one yourself! We are very grateful for any help towards the project goals.
-This documentation is for version 5.8.0 (stable branch) of rsyslog. +
This documentation is for version 5.8.1 (stable branch) of rsyslog. Visit the rsyslog status page to obtain current version information and project status.
If you like rsyslog, you might -- cgit