# How to use SNMP attributes in DPL (Logs Classic)?

**URL:** <https://community.dynatrace.com/t/how-to-use-snmp-attributes-in-dpl-logs-classic/48879>\
**Category:** Logs\
**Tags:** log-processing, snmp, logs\
**Created:** [November 14, 2024, 12:24am UTC](https://community.dynatrace.com/t/how-to-use-snmp-attributes-in-dpl-logs-classic/48879 "2024-11-14T00:24:27Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [November 14, 2024, 12:24am UTC](https://community.dynatrace.com/t/how-to-use-snmp-attributes-in-dpl-logs-classic/48879/1 "2024-11-14T00:24:27Z")

</div>

Trying to do a Processor definition using an SNMP attribute like CISCO-SMIciscoMgmt.311.1.1.2.1.17.0

The idea is that when the value is “4” it changes loglevel to “WARN”:

```markup
USING (INOUT loglevel:STRING, CISCO-SMIciscoMgmt.311.1.1.2.1.17.0) | FIELDS_ADD(loglevel:IF_THEN(CISCO-SMI::ciscoMgmt.311.1.1.2.1.17.0 == '4', "WARN"))

```

It gives the following error: “Invalid processing rule definition: invalid used symbol: SMIciscoMgmt.311.1.1.2.1.17.0 at 1:36 - no viable alternative at input ‘CISCOSMIciscoMgmt.311.1.1.2.1.17.0’”

i haven’t managed to escape it and involving it with " or ’ also doesn’t work. Any ideas?

---

<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:** [November 14, 2024, 12:40am UTC](https://community.dynatrace.com/t/how-to-use-snmp-attributes-in-dpl-logs-classic/48879/2 "2024-11-14T00:40:00Z")

</div>

Oh my, I had something very similar in the past: [https://community.dynatrace.com/t5/Log-Analytics/Searching-Logs-for-SNMP-trap-content/m-p/219443](https://community.dynatrace.com/post/219443)

the correct way to do it is:

```markup
USING (INOUT "CISCO-SMI::ciscoMgmt.311.1.1.2.1.17.0":STRING ) | FIELDS_ADD(loglevel:IF_THEN(COLUMN("CISCO-SMI::ciscoMgmt.311.1.1.2.1.17.0") == '4', "WARN"))

```
