<?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 Difficulty creating a timechart from SNMP multivalue data. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difficulty-creating-a-timechart-from-SNMP-multivalue-data/m-p/406230#M195885</link>
    <description>&lt;P&gt;I am receiving SNMP data using the SNMP Modular Input application. The extraction configurated in this application is able to give a list of indexes, oids, and values. I am trying to accomplish a timechart plot of errorCounter values separated by the different compID values.  Currently I am able to create a table organized in the format that I want but I cannot use the same data to create a timechart. My sample event and search are provided below.&lt;/P&gt;

&lt;P&gt;MIB::errorCounter."0" = "12" MIB::errorCounter."1" = "23" MIB::errorCounter."2" = "9" MIB::errorCounter."3" = "13" MIB::compID."0" = "comid1" MIB::compID."1" = "acom2" MIB::compID."2" = "othercomid" MIB::compID."3" = "hi" &lt;BR /&gt;
host =  127.0.0.1 index =   main oid =  errorCounter    oid =   errorCounter    oid =   errorCounter    oid =   errorCounter    oid =   compID  oid =   compID  oid =   compID  oid =   compID snmp_index = 0   snmp_index =    1   snmp_index =    2   snmp_index =    3   snmp_index =    0   snmp_index =    1   snmp_index =    2   snmp_index =    3 source =  snmp://SNMP Sim Test sourcetype =   snmp_ta value = 12  value = 23  value = 9   value = 13  value = comid1  value = acom2   value = othercomid  value = hi&lt;/P&gt;

&lt;P&gt;sourcetype="snmp_ta"&lt;BR /&gt;&lt;BR /&gt;
  | eval d=mvzip(oid,snmp_index), e=mvzip(d,value)&lt;BR /&gt;
  | mvexpand e&lt;BR /&gt;
  | eval f1=mvfilter(match(e,".&lt;EM&gt;error.&lt;/EM&gt;"))&lt;BR /&gt;
  | eval f2=mvfilter(match(e,".&lt;EM&gt;compID.&lt;/EM&gt;"))&lt;BR /&gt;
  | eval comid=mvindex(split(f2,","),2), errorval=mvindex(split(f1,","),2)&lt;BR /&gt;
  | stats list(comid) as "Computer", list(errorval) as "Error Count" by _time &lt;/P&gt;

&lt;P&gt;I tried the adding the line | timechart avg(errorval) by comid but no stats or visualization appears. Any help is appreciated. Thank you so much.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:46:42 GMT</pubDate>
    <dc:creator>loren3737</dc:creator>
    <dc:date>2020-09-29T22:46:42Z</dc:date>
    <item>
      <title>Difficulty creating a timechart from SNMP multivalue data.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difficulty-creating-a-timechart-from-SNMP-multivalue-data/m-p/406230#M195885</link>
      <description>&lt;P&gt;I am receiving SNMP data using the SNMP Modular Input application. The extraction configurated in this application is able to give a list of indexes, oids, and values. I am trying to accomplish a timechart plot of errorCounter values separated by the different compID values.  Currently I am able to create a table organized in the format that I want but I cannot use the same data to create a timechart. My sample event and search are provided below.&lt;/P&gt;

&lt;P&gt;MIB::errorCounter."0" = "12" MIB::errorCounter."1" = "23" MIB::errorCounter."2" = "9" MIB::errorCounter."3" = "13" MIB::compID."0" = "comid1" MIB::compID."1" = "acom2" MIB::compID."2" = "othercomid" MIB::compID."3" = "hi" &lt;BR /&gt;
host =  127.0.0.1 index =   main oid =  errorCounter    oid =   errorCounter    oid =   errorCounter    oid =   errorCounter    oid =   compID  oid =   compID  oid =   compID  oid =   compID snmp_index = 0   snmp_index =    1   snmp_index =    2   snmp_index =    3   snmp_index =    0   snmp_index =    1   snmp_index =    2   snmp_index =    3 source =  snmp://SNMP Sim Test sourcetype =   snmp_ta value = 12  value = 23  value = 9   value = 13  value = comid1  value = acom2   value = othercomid  value = hi&lt;/P&gt;

&lt;P&gt;sourcetype="snmp_ta"&lt;BR /&gt;&lt;BR /&gt;
  | eval d=mvzip(oid,snmp_index), e=mvzip(d,value)&lt;BR /&gt;
  | mvexpand e&lt;BR /&gt;
  | eval f1=mvfilter(match(e,".&lt;EM&gt;error.&lt;/EM&gt;"))&lt;BR /&gt;
  | eval f2=mvfilter(match(e,".&lt;EM&gt;compID.&lt;/EM&gt;"))&lt;BR /&gt;
  | eval comid=mvindex(split(f2,","),2), errorval=mvindex(split(f1,","),2)&lt;BR /&gt;
  | stats list(comid) as "Computer", list(errorval) as "Error Count" by _time &lt;/P&gt;

&lt;P&gt;I tried the adding the line | timechart avg(errorval) by comid but no stats or visualization appears. Any help is appreciated. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difficulty-creating-a-timechart-from-SNMP-multivalue-data/m-p/406230#M195885</guid>
      <dc:creator>loren3737</dc:creator>
      <dc:date>2020-09-29T22:46:42Z</dc:date>
    </item>
  </channel>
</rss>

