<?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 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174650#M50111</link>
    <description>&lt;P&gt;First off, let us know what fields you want to extract, and what the values in your representative data looks like.. Then we can help!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2015 06:04:00 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2015-01-07T06:04:00Z</dc:date>
    <item>
      <title>Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174649#M50110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to read some systemout log files and extract data from it.&lt;BR /&gt;
Sample info in the log is as below :&lt;/P&gt;

&lt;P&gt;Field1 Accept Indicator :: true&lt;BR /&gt;
Field1 Accept Indicator :: false&lt;BR /&gt;
Field2 Accept Indicator :: true&lt;BR /&gt;
Field2 Accept Indicator :: false&lt;BR /&gt;
Total Time Taken by ReqA****156&lt;BR /&gt;
etc&lt;/P&gt;

&lt;P&gt;I am new to Splunk and not sure what is the correct approach to get these fields extracted.. &lt;BR /&gt;
I tried using the regex generated by Field Extraction but it does not give accurate results.&lt;/P&gt;

&lt;P&gt;Can anyone help me with the regex as well?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 05:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174649#M50110</guid>
      <dc:creator>visa87</dc:creator>
      <dc:date>2015-01-07T05:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174650#M50111</link>
      <description>&lt;P&gt;First off, let us know what fields you want to extract, and what the values in your representative data looks like.. Then we can help!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174650#M50111</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-01-07T06:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174651#M50112</link>
      <description>&lt;P&gt;I want to extract the time taken as a field and the numeric value as the value for tat field. Similarly I want Field 1 Accept Indicator as a field F1 which can either have true or false as value&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174651#M50112</guid>
      <dc:creator>visa87</dc:creator>
      <dc:date>2015-01-07T06:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174652#M50113</link>
      <description>&lt;P&gt;You can do regex as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | rex field=_raw "Field1.*\:\:\s(?&amp;lt;f1_value&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That would get this for Field1, you can modify for each field, assuming this is a single line event.&lt;/P&gt;

&lt;P&gt;For the total time event-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | rex field=_raw "ReqA(?&amp;lt;time_value&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again, these are for single line events. You can drop those regex's into props.conf or transforms for your sourcetime and extract them there.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174652#M50113</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-01-07T06:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174653#M50114</link>
      <description>&lt;P&gt;Thanks... That helped. But I dont understand what can be achieved by adding  these regex to transforms. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 04:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174653#M50114</guid>
      <dc:creator>visa87</dc:creator>
      <dc:date>2015-01-08T04:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174654#M50115</link>
      <description>&lt;P&gt;Then you can accept the answer which helped you.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 08:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174654#M50115</guid>
      <dc:creator>abacus_machine_</dc:creator>
      <dc:date>2015-01-08T08:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174655#M50116</link>
      <description>&lt;P&gt;For understanding the difference between having your extractions in props.conf vs transforms.conf, reading through the spec file for props.conf can be quite englightening:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Defining new search-time field extractions. You can define basic search-time field&lt;BR /&gt;
   extractions entirely through props.conf. But a transforms.conf component is required if&lt;BR /&gt;
   you need to create search-time field extractions that involve one or more of the following:&lt;BR /&gt;
       * Reuse of the same field-extracting regular expression across multiple sources,&lt;BR /&gt;
         source types, or hosts.&lt;BR /&gt;
       * Application of more than one regex to the same source, source type, or host.&lt;BR /&gt;
       * Delimiter-based field extractions (they involve field-value pairs that are&lt;BR /&gt;
        separated by commas, colons, semicolons, bars, or something similar).&lt;BR /&gt;
       * Extraction of multiple values for the same field (multivalued field extraction).&lt;BR /&gt;
       * Extraction of fields with names that begin with numbers or underscores.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 09:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction/m-p/174655#M50116</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-01-08T09:08:31Z</dc:date>
    </item>
  </channel>
</rss>

