# SNMP Trap extension add attribute to log and custom device

**URL:** <https://community.dynatrace.com/t/snmp-trap-extension-add-attribute-to-log-and-custom-device/47071>\
**Category:** Extensions\
**Tags:** snmp, extensions, logs\
**Created:** [August 8, 2024, 2:32pm UTC](https://community.dynatrace.com/t/snmp-trap-extension-add-attribute-to-log-and-custom-device/47071 "2024-08-08T14:32:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MatthieuA](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthieua/32/36685_2.png) [@MatthieuA](https://community.dynatrace.com/u/MatthieuA)\
**Post date:** [October 8, 2024, 5:22pm UTC](https://community.dynatrace.com/t/snmp-trap-extension-add-attribute-to-log-and-custom-device/47071/3 "2024-10-08T17:22:08Z")

</div>

I agree that this would really be very practical to be able to use “var:” in custom extensions based on SNMP Traps.&nbsp;&nbsp;Furthermore, it looks like a bug because the use of variables works fine with the datasource “snmp” (in poll mode) but does not work with “snmptraps”.&nbsp;The problem is that in certain cases, the workaround with log processing is not possible if the expected information is not present in the content of the SNMP Trap received.

---

_[View the full topic](https://community.dynatrace.com/t/snmp-trap-extension-add-attribute-to-log-and-custom-device/47071)._
