<?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: Props and Transforms report field extractions not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137610#M37727</link>
    <description>&lt;P&gt;Ha. awesome. thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2015 16:59:28 GMT</pubDate>
    <dc:creator>rsennett_splunk</dc:creator>
    <dc:date>2015-04-08T16:59:28Z</dc:date>
    <item>
      <title>Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137605#M37722</link>
      <description>&lt;P&gt;I am trying to configure props/transforms in a custom TA to perform some search-time field extractions for a custom event source.  I have no issues creating the REGEX extraction in props.conf but when I try to use my REGEX as a report in transforms I don't have any luck.&lt;/P&gt;

&lt;P&gt;in metadata/default.meta I have this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; []
    access = read : [ * ], write : [ admin ]
    export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In props.conf I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [sourcetype]
    REPORT-fields = fields_extract
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [fields_extract]
    REGEX = regex(?&amp;lt;field1&amp;gt;\S+)\s(?&amp;lt;field2&amp;gt;\S+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Background:  I need to extract and name the fields for this sourcetype.  Some events which describe errors contain fields within the data that don't exist in other events.  My plan is to have one regex that works on every event and another regex that matches starting on the error description to pull out the extra fields.  I understand how to call two reports on one line but for some reason I can't get my extraction to work in transforms, only in props.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137605#M37722</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2015-04-07T19:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137606#M37723</link>
      <description>&lt;P&gt;You probably want to add the FORMAT to our transforms stanza, and your syntax for the regex is odd... unless your data really is prefixed by the characters r e g e x that's what you're telling it.&lt;/P&gt;

&lt;P&gt;Since you seem to have values and no keys it would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fields_extract]
REGEX=(?&amp;lt;field1&amp;gt;\S+)\s(?&amp;lt;field2&amp;gt;\S+)
FORMAT = first_Field::$1 second_Field::$2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137606#M37723</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2015-04-07T19:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137607#M37724</link>
      <description>&lt;P&gt;I should have mentioned that my 'regex' was only to use as an example.  I have an actual regex string in there that worked just fine when I had it in props.conf.&lt;/P&gt;

&lt;P&gt;I thought my syntax of (?) meant that I didn't have to use the FORMAT parameter.  I will give this a try and get right back!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137607#M37724</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2015-04-08T12:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137608#M37725</link>
      <description>&lt;P&gt;My solution was a sad case of fat fingers.  Thanks @rsennett_splunk for having a look.  I've sent you 10 points.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 15:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137608#M37725</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2015-04-08T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137609#M37726</link>
      <description>&lt;P&gt;Mods can close this question.  The solution wasn't Splunk related.  I've awarded points to @rsennett_splunk for contributing.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 15:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137609#M37726</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2015-04-08T15:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137610#M37727</link>
      <description>&lt;P&gt;Ha. awesome. thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 16:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137610#M37727</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2015-04-08T16:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms report field extractions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137611#M37728</link>
      <description>&lt;P&gt;You don't need FORMAT when you use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;myfield&amp;gt;.)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2015 17:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-and-Transforms-report-field-extractions-not-working/m-p/137611#M37728</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2015-09-10T17:38:32Z</dc:date>
    </item>
  </channel>
</rss>

