<?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 extractor help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26861#M5211</link>
    <description>&lt;P&gt;I would recommend to use the props/transforms approach using DELIMS and FIELDS. It's a little bit easier to handle stuff correctly. And you get all the fields extracted in one go.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
REPORT-blah = pipe_separated
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pipe_separated]
DELIMS = "|"
FIELDS = field1, field2, field3, field4, field5, field6, field6, field7, field8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2013 07:53:55 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-08-07T07:53:55Z</dc:date>
    <item>
      <title>field extractor help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26858#M5208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to extract some fields via field extractor. I got most of them, but it is ignoring the ones that have decimal places. I want to grab the 5th field. The extract is as follows:&lt;/P&gt;

&lt;P&gt;(?i)|.*?|(?P&lt;FIELDNAME&gt;\d+)(?=|)&lt;/FIELDNAME&gt;&lt;/P&gt;

&lt;P&gt;Here's some sample data:&lt;/P&gt;

&lt;P&gt;375839600000|330128|NormalizedCPUInfo|Utilization|2|CPU|deviceA|HP H3C CPU&lt;/P&gt;

&lt;P&gt;1375839600000|330571|NormalizedCPUInfo|Utilization|10|CPU|DEVICEB|HP H3C CPU&lt;/P&gt;

&lt;P&gt;1375839600000|355140|NormalizedMemoryInfo|Utilization|24.331592003281088|Memory|ANOTHERDEVICE|Enhanced-MemoryPool: Processor 6033.1&lt;/P&gt;

&lt;P&gt;1375839600000|355140|NormalizedMemoryInfo|Free|166252960|Memory|YETANOTHERDEVICE|Enhanced-MemoryPool: Processor 6033.1&lt;/P&gt;

&lt;P&gt;1375839600000|355140|NormalizedMemoryInfo|LargestMemoryFree|165506776|Memory|LABDEVICE|Enhanced-MemoryPool: Processor 6033.1&lt;/P&gt;

&lt;P&gt;Can anyone help? &lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 02:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26858#M5208</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-08-07T02:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: field extractor help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26859#M5209</link>
      <description>&lt;P&gt;The answer is very simple: "d+" only allows for one or more digits, and a decimal point is not a digit.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 03:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26859#M5209</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-08-07T03:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: field extractor help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26860#M5210</link>
      <description>&lt;P&gt;Thanks. Caught it! Duh.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 03:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26860#M5210</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-08-07T03:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: field extractor help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26861#M5211</link>
      <description>&lt;P&gt;I would recommend to use the props/transforms approach using DELIMS and FIELDS. It's a little bit easier to handle stuff correctly. And you get all the fields extracted in one go.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
REPORT-blah = pipe_separated
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pipe_separated]
DELIMS = "|"
FIELDS = field1, field2, field3, field4, field5, field6, field6, field7, field8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 07:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26861#M5211</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-07T07:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: field extractor help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26862#M5212</link>
      <description>&lt;P&gt;Good solution to the broader unasked question.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:29:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extractor-help/m-p/26862#M5212</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-08-07T11:29:15Z</dc:date>
    </item>
  </channel>
</rss>

