# MessageOID

Specifies the OID for the message variable carrying the syslog text.

This parameter applies to omsnmp: SNMP Trap Output Module.

Name:

  MessageOID

Scope:

  module

Type:

  string

Default:

  module=1.3.6.1.4.1.19406.1.2.1

Required?:

  no

Introduced:

  at least 7.3.0, possibly earlier

## Description

This OID will be used as a variable, type “OCTET STRING”. This variable will contain up to 255 characters of the original syslog message including syslog header. It is recommend to use the default OID. In order to decode this OID, you will need to have the ADISCON-MONITORWARE-MIB and ADISCON-MIB mibs installed on the receiver side. To download these custom mibs, see the description of TrapOID.

## Module usage

    action(type="omsnmp" messageOID="1.3.6.1.4.1.19406.1.2.1")

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

- $actionsnmpsyslogmessageoid — maps to MessageOID (status: legacy)

## See also

See also omsnmp: SNMP Trap Output Module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.