<?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 Re: parse snmp result in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179187#M35918</link>
    <description>&lt;P&gt;I don't entirely follow why you need to split this into separate events? You're not limited to one extraction per event so you can just add all those extractions and have them apply to one single event instead.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Mar 2014 07:05:02 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-03-10T07:05:02Z</dc:date>
    <item>
      <title>parse snmp result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179186#M35917</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;

&lt;P&gt;I'm using snmp-modular--input app to get my device stats using multiple object ids (get next, not bulk). The result is shown below. &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;timestamp1   SNMPv2-SMI::enterprises."14685.3.1.5.1.0" = "48" SNMPv2-SMI::enterprises."14685.3.1.52.2.0" = "1" SNMPv2-SMI::enterprises."14685.3.1.52.3.0" = "14"&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;I have problem in splitting above result like this:-&lt;BR /&gt;
&lt;EM&gt;timestamp1 SNMPv2-SMI::enterprises."14685.3.1.5.1.0" = "48"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;timestamp1 SNMPv2-SMI::enterprises."14685.3.1.52.2.0" = "1"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;timestamp1 SNMPv2-SMI::enterprises."14685.3.1.52.3.0" = "14"&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;I can then make use of rex expressions to get "14685.3.1.5.1.0" as field1 and "48" as field2 and use this as a name-value pair for dashboards.&lt;/P&gt;

&lt;P&gt;Could someone please tell me how to split? or any other approach?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 01:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179186#M35917</guid>
      <dc:creator>ragkna</dc:creator>
      <dc:date>2014-03-10T01:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: parse snmp result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179187#M35918</link>
      <description>&lt;P&gt;I don't entirely follow why you need to split this into separate events? You're not limited to one extraction per event so you can just add all those extractions and have them apply to one single event instead.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179187#M35918</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-03-10T07:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: parse snmp result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179188#M35919</link>
      <description>&lt;P&gt;I have below rex expression which extract fields from above event. &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;source=snmp |eval _raw = split(_raw, "SNMPv2-SMI::enterprises.") | mvexpand _raw|rex "[^\"\n]*\"(?P&lt;FIELDNAME1&gt;[^\"]+)\"(?P&lt;FIELDNAME2&gt;[^\"]+)\"(?P&lt;FIELDNAME3&gt;[^\"]+)"&lt;/FIELDNAME3&gt;&lt;/FIELDNAME2&gt;&lt;/FIELDNAME1&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Result of above query idexed to:&lt;BR /&gt;
FIELDNAME1=14685.3.1.5.1.0, 14685.3.1.52.2.0 and 14685.3.1.52.3.0&lt;BR /&gt;
FIELDNAME2= '=' (Assigned to 'equal to')&lt;BR /&gt;
FIELDNAME3= 48,1, and 14&lt;/P&gt;

&lt;P&gt;Now, I'm unable to correlate between FIELDNAME1 and FIELDNAME3, which I need as name-value pair. If I split this into multiple and extract then resulted index holds FIELDNAME1='14685.3.1.5.1.0' and FIELDNAME3='48'. I do not need to correlate in this case. &lt;BR /&gt;
Please let me know If you can give better idea.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179188#M35919</guid>
      <dc:creator>ragkna</dc:creator>
      <dc:date>2020-09-28T16:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: parse snmp result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179189#M35920</link>
      <description>&lt;P&gt;Ayn- Please check below comment..&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 11:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179189#M35920</guid>
      <dc:creator>ragkna</dc:creator>
      <dc:date>2014-03-10T11:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: parse snmp result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179190#M35921</link>
      <description>&lt;P&gt;Can someone pl give insight on this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 23:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-snmp-result/m-p/179190#M35921</guid>
      <dc:creator>ragkna</dc:creator>
      <dc:date>2014-03-11T23:25:02Z</dc:date>
    </item>
  </channel>
</rss>

