# SNMP trap processing

**URL:** <https://community.dynatrace.com/t/snmp-trap-processing/55536>\
**Category:** Logs\
**Tags:** log-processing, snmp, extensions, logs\
**Created:** [April 13, 2026, 9:49am UTC](https://community.dynatrace.com/t/snmp-trap-processing/55536 "2026-04-13T09:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichalSzekely](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MichalSzekely](https://community.dynatrace.com/u/MichalSzekely)\
**Post date:** [April 13, 2026, 9:49am UTC](https://community.dynatrace.com/t/snmp-trap-processing/55536/1 "2026-04-13T09:49:26Z")

</div>

hello,

I received a trap like this:  
{  
“event.type”: “LOG”,  
“content”: “SNMP trap (SNMPv2-SMI::experimental.94.0.4) reported from src:10.10.10.12\n agent:10.10.10.12”,  
“status”: “NONE”,  
“timestamp”: “1775468179963”,  
“loglevel”: “NONE”,  
“log.source”: “snmptraps”,  
“dt.openpipeline.source”: “extension:com.dynatrace.extension.snmp-traps-generic”,  
“snmp.trap\_oid”: “SNMPv2-SMI::experimental.94.0.4”,  
“device.address”: “10.10.10.10”,  
“dt.entity.snmptraps:com\_dynatrace\_ext\_snmp-traps”: “CUSTOM\_DEVICE-BLABLA”,  
“SNMPv2-MIB::snmpTrapOID”: “.1.3.6.1.3.94.0.4”,  
“DISMAN-EVENT-MIB::sysUpTimeInstance”: “1033947497”,  
“SNMPv2-SMI::experimental.94.1.11.1.7.16.0.136.148.113.161.162.91.0.0.0.0.0.0.0.0.0”: “2”,  
“device.name”: “[huhu.eps.com](http://huhu.eps.com)”,  
“node.fqdn”: “[huhu.eps.com](http://huhu.eps.com)”,  
“snmp.version”: “3”,  
“SNMPv2-SMI::experimental.94.1.11.1.8.16.0.136.148.113.161.162.91.0.0.0.0.0.0.0.0.0”: “.0.0”,  
“SNMPv2-SMI::experimental.94.1.11.1.9.16.0.136.148.113.161.162.91.0.0.0.0.0.0.0.0.0”: “MAPS-1010 Port(s) fenced due to RuleName=defALL\_OTHER\_F\_PORTSITW\_40, Condition=ALL\_OTHER\_F\_PORTS(ITW/min\>40), Obj:port5, F-Port 5 [ITW,43 ITWs].”  
}

I would process this trap and create a problem if the word **“fenced”** appears anywhere.

My issue is that **“fenced”** is located in the field  
SNMPv2-SMI::experimental.94.1.11.1.9.16.0.136.148.113.161.162.91.0.0.0.0.0.0.0.0.0&nbsp;  
where SNMPv2-SMI::experimental.94.1.11.1 is static and the rest is dynamic, it looks like a device identifier.

How can I filter the value **“fenced”** in this field for all incoming messages on all devices?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 13, 2026, 11:11am UTC](https://community.dynatrace.com/t/snmp-trap-processing/55536/2 "2026-04-13T11:11:27Z")

</div>

[@MichalSzekely](https://community.dynatrace.com/user/60374)&nbsp;,  
Traditionally you’ll have to configure a “Log custom attribute” to search it. In Grail, never did SNMP traps myself, I would have to ask someone that did.

---

<div class="post-metadata">

**Author:** ![SjoerdB](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sjoerdb/32/157_2.png) [@SjoerdB](https://community.dynatrace.com/u/SjoerdB)\
**Post date:** [April 13, 2026, 1:07pm UTC](https://community.dynatrace.com/t/snmp-trap-processing/55536/3 "2026-04-13T13:07:37Z")

</div>

Did you manually change the last part to 0.0.0.0.etc ? Usually there is a still a field-identifyer and after that might be some dynamics. In the snmp-trap extension config you can define that it should trim some last digits from the oid, to only have the devicetype+fieldnumber which you can use to capture the exact field you need. This is always a hard thing to handle, but at least some description on this can be found here:

> **[SNMP traps data source](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/data-sources/snmp-extensions/snmptraps-extensions)**
>
> Create an SNMP traps extension using the Dynatrace Extensions framework.

In openpipeline-logs (filter: log.source==“snmptraps”) you can then create nice attributes, and based on those attributes you can trigger an event in the openpipeline.

---

<div class="post-metadata">

**Author:** ![axel\_tapia](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@axel\_tapia](https://community.dynatrace.com/u/axel_tapia)\
**Post date:** [July 16, 2026, 8:53pm UTC](https://community.dynatrace.com/t/snmp-trap-processing/55536/4 "2026-07-16T20:53:06Z")

</div>

In SNMP trap extension, edit monitoring configuration for the related devices, in the list of endpoints expand the corresponding endpoint, scroll to to bottom and click Add&nbsp; varbinding, set these values:

OID Prefix: SNMPv2-SMI::experimental.94.1.11.1

Number of octets trimmed: 17

 ![axel_tapia_0-1784235043834.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/5/f56ee647942fc2f5624d10d89947af71dedf9c06.png)
