<?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 Why are field transformations not capturing from source field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380788#M111413</link>
    <description>&lt;P&gt;I am trying to create a new field called &lt;STRONG&gt;collection&lt;/STRONG&gt; which is extracted from the existing &lt;STRONG&gt;source&lt;/STRONG&gt; field.  I am able to extract the field during an adhoc search, but want to create it using the field transformations without having to generate a regex during each search.    &lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;source&lt;/STRONG&gt; field value is just a path (&lt;STRONG&gt;ex:&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;source=D:\Logs\SomeCollectionName_SomeDomain\SomeDomain.log&lt;/EM&gt;&lt;/STRONG&gt;) and I am extracting part of that path to aggregate by &lt;STRONG&gt;collection&lt;/STRONG&gt;.  I want to specifically want to target the &lt;STRONG&gt;source&lt;/STRONG&gt; field to regex not _raw.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;BEFORE Extraction:&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;source=D:\Logs\SomeCollectionName_SomeDomain\SomeDomain.log&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;AFTER Extraction:&lt;/STRONG&gt; collection=SomeCollectionName&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7086i585D499BCE378140/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have created a field transformation called &lt;STRONG&gt;testcollection&lt;/STRONG&gt; and nothing is being extracted at search time.&lt;/P&gt;

&lt;P&gt;Here are my settings for the &lt;STRONG&gt;testcollection&lt;/STRONG&gt; field transformations (permissions are set for everyone to be able to read in the search app)&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7087i52D71CB4770967F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Maybe I have a misunderstanding of Field Transformations and should be using field extractions any guidance would be helpful.  I am just using the default formatting, but maybe that is incorrect.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I have gone through the documentation for field transformations and field extracts.  I understand how to extract new fields during a search, but I want this new field to be available to all of the users in our account.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 18:20:05 GMT</pubDate>
    <dc:creator>thenino</dc:creator>
    <dc:date>2019-05-21T18:20:05Z</dc:date>
    <item>
      <title>Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380788#M111413</link>
      <description>&lt;P&gt;I am trying to create a new field called &lt;STRONG&gt;collection&lt;/STRONG&gt; which is extracted from the existing &lt;STRONG&gt;source&lt;/STRONG&gt; field.  I am able to extract the field during an adhoc search, but want to create it using the field transformations without having to generate a regex during each search.    &lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;source&lt;/STRONG&gt; field value is just a path (&lt;STRONG&gt;ex:&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;source=D:\Logs\SomeCollectionName_SomeDomain\SomeDomain.log&lt;/EM&gt;&lt;/STRONG&gt;) and I am extracting part of that path to aggregate by &lt;STRONG&gt;collection&lt;/STRONG&gt;.  I want to specifically want to target the &lt;STRONG&gt;source&lt;/STRONG&gt; field to regex not _raw.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;BEFORE Extraction:&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;source=D:\Logs\SomeCollectionName_SomeDomain\SomeDomain.log&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;AFTER Extraction:&lt;/STRONG&gt; collection=SomeCollectionName&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7086i585D499BCE378140/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have created a field transformation called &lt;STRONG&gt;testcollection&lt;/STRONG&gt; and nothing is being extracted at search time.&lt;/P&gt;

&lt;P&gt;Here are my settings for the &lt;STRONG&gt;testcollection&lt;/STRONG&gt; field transformations (permissions are set for everyone to be able to read in the search app)&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7087i52D71CB4770967F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Maybe I have a misunderstanding of Field Transformations and should be using field extractions any guidance would be helpful.  I am just using the default formatting, but maybe that is incorrect.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I have gone through the documentation for field transformations and field extracts.  I understand how to extract new fields during a search, but I want this new field to be available to all of the users in our account.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 18:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380788#M111413</guid>
      <dc:creator>thenino</dc:creator>
      <dc:date>2019-05-21T18:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380789#M111414</link>
      <description>&lt;P&gt;Use and extraction for this instead of a transformation:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7084i77BE082F15F8D9B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7085i57BACD047DCBF731/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 18:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380789#M111414</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2019-05-23T18:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380790#M111415</link>
      <description>&lt;P&gt;Thank you.   I tried that at first and I was running into this issue (I had to disable my json browser extension)&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Your entry was not saved. The following error was reported: SyntaxError: Unexpected token &amp;lt; in JSON at position 0.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/106487/your-entry-was-not-saved-the-following-error-was-r.html"&gt;https://answers.splunk.com/answers/106487/your-entry-was-not-saved-the-following-error-was-r.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once I disabled my extension I was able to create the field extraction.  I will report back if it works as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 14:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380790#M111415</guid>
      <dc:creator>thenino</dc:creator>
      <dc:date>2019-05-24T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380791#M111416</link>
      <description>&lt;P&gt;I used both field extractions and field transformations.  The problem is _raw does not include the &lt;STRONG&gt;source&lt;/STRONG&gt; field.  I am able to parse anything that matches the regex in _raw but it is not parsing the actual &lt;STRONG&gt;source&lt;/STRONG&gt; field.  I want to be able to target the source field like I can during adhoc searches example:&lt;BR /&gt;
source=D:\Logs\MyCollection_SomeDomain\SomeDomain.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Some search
|rex field=source "(?&amp;lt;CollectionMap&amp;gt;\w+)\_"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Expected:&lt;/STRONG&gt; CollectionMap=MyCollection&lt;BR /&gt;
&lt;STRONG&gt;Actual:&lt;/STRONG&gt; Anything with an underscore in _raw matches&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380791#M111416</guid>
      <dc:creator>thenino</dc:creator>
      <dc:date>2020-09-30T00:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380792#M111417</link>
      <description>&lt;P&gt;Do you have access directly to the props.conf file instead of using the UI?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 04:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380792#M111417</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2019-05-30T04:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380793#M111418</link>
      <description>&lt;P&gt;We are using splunk cloud so no access to the props.conf&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 15:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380793#M111418</guid>
      <dc:creator>thenino</dc:creator>
      <dc:date>2019-05-30T15:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why are field transformations not capturing from source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380794#M111419</link>
      <description>&lt;P&gt;I think I found my answer here:&lt;BR /&gt;
 &lt;A href="https://answers.splunk.com/answers/149597/im-struggling-with-how-i-should-be-doing-inputs-and-also-props-transforms-etc-stuff-within-splunk-cloud.html"&gt;https://answers.splunk.com/answers/149597/im-struggling-with-how-i-should-be-doing-inputs-and-also-props-transforms-etc-stuff-within-splunk-cloud.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I will have to open a support ticket with splunk.  Thanks for your assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 15:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-field-transformations-not-capturing-from-source-field/m-p/380794#M111419</guid>
      <dc:creator>thenino</dc:creator>
      <dc:date>2019-05-30T15:46:45Z</dc:date>
    </item>
  </channel>
</rss>

