<?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: field extraction help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58170#M14215</link>
    <description>&lt;P&gt;No problem. Could you please mark my answer as accepted if this solved your issue? Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2012 08:36:09 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-05-25T08:36:09Z</dc:date>
    <item>
      <title>field extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58165#M14210</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I am a newbie on splunk and I have the following events:&lt;/P&gt;

&lt;P&gt;IF-MIB::ifInOctets.502 = Counter32: 675328773&lt;/P&gt;

&lt;P&gt;IF-MIB::ifInOctets.501 = Counter32: 407638105&lt;/P&gt;

&lt;P&gt;And would like to extract the info like this.&lt;BR /&gt;
key=ifInOctets.502, value=675328773&lt;BR /&gt;
key=ifInOctets.501, value=407638105&lt;/P&gt;

&lt;P&gt;what should I configure in transforms.conf? Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 08:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58165#M14210</guid>
      <dc:creator>hello_world15</dc:creator>
      <dc:date>2012-05-23T08:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58166#M14211</link>
      <description>&lt;P&gt;Assuming that the leading "IF-MIB::" and the string "Counter32:" are constant for all events you want to extract this from, put something like this in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract_snmp]
REGEX = IF-MIB::(\S+) = Counter32: (\d+)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then refer to it like this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
REPORT-snmpextract = extract_snmp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 May 2012 08:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58166#M14211</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-23T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58167#M14212</link>
      <description>&lt;P&gt;Thanks alot. &lt;/P&gt;

&lt;P&gt;One stupid question: how can I modify the REGEX to match this also. &lt;/P&gt;

&lt;P&gt;IF-MIB::ifDescr.501 = STRING: ge-0/0/0&lt;/P&gt;

&lt;P&gt;Thanks alot.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 03:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58167#M14212</guid>
      <dc:creator>hello_world15</dc:creator>
      <dc:date>2012-05-25T03:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58168#M14213</link>
      <description>&lt;P&gt;Something like this should work (and be more generic):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IF-MIB::(\S+) = [^:]+: (\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 May 2012 05:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58168#M14213</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-25T05:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58169#M14214</link>
      <description>&lt;P&gt;Thanks alot.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 08:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58169#M14214</guid>
      <dc:creator>hello_world15</dc:creator>
      <dc:date>2012-05-25T08:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58170#M14215</link>
      <description>&lt;P&gt;No problem. Could you please mark my answer as accepted if this solved your issue? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 08:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction-help/m-p/58170#M14215</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-25T08:36:09Z</dc:date>
    </item>
  </channel>
</rss>

