<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use SNMP attributes in DPL (Logs Classic)? in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/How-to-use-SNMP-attributes-in-DPL-Logs-Classic/m-p/262363#M1107</link>
    <description>&lt;P&gt;Trying to do a Processor definition using an SNMP attribute like CISCO-SMIciscoMgmt.311.1.1.2.1.17.0&lt;/P&gt;
&lt;P&gt;The idea is that when the value is "4" it changes loglevel to "WARN":&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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'"&lt;/P&gt;
&lt;P&gt;i haven't managed to escape it and involving it with " or ' also doesn't work. Any ideas?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 10:50:33 GMT</pubDate>
    <dc:creator>AntonioSousa</dc:creator>
    <dc:date>2025-04-01T10:50:33Z</dc:date>
    <item>
      <title>How to use SNMP attributes in DPL (Logs Classic)?</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/How-to-use-SNMP-attributes-in-DPL-Logs-Classic/m-p/262363#M1107</link>
      <description>&lt;P&gt;Trying to do a Processor definition using an SNMP attribute like CISCO-SMIciscoMgmt.311.1.1.2.1.17.0&lt;/P&gt;
&lt;P&gt;The idea is that when the value is "4" it changes loglevel to "WARN":&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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'"&lt;/P&gt;
&lt;P&gt;i haven't managed to escape it and involving it with " or ' also doesn't work. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 10:50:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/How-to-use-SNMP-attributes-in-DPL-Logs-Classic/m-p/262363#M1107</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-04-01T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SNMP attributes in DPL (Logs Classic)?</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/How-to-use-SNMP-attributes-in-DPL-Logs-Classic/m-p/262364#M1108</link>
      <description>&lt;P&gt;Oh my, I had something very similar in the past: &lt;A href="https://community.dynatrace.com/t5/Log-Analytics/Searching-Logs-for-SNMP-trap-content/m-p/219443" target="_blank"&gt;https://community.dynatrace.com/t5/Log-Analytics/Searching-Logs-for-SNMP-trap-content/m-p/219443&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;the correct way to do it is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 00:40:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/How-to-use-SNMP-attributes-in-DPL-Logs-Classic/m-p/262364#M1108</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-11-14T00:40:00Z</dc:date>
    </item>
  </channel>
</rss>

