<?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: How to make a rex field extraction permanent for a field extraction from source? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210692#M61599</link>
    <description>&lt;P&gt;You need to use a transform where you have a different source field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# props.conf
[RT-VPM]
REPORT-chassis = chassis

# transforms.conf
[chassis]
SOURCE_KEY=source
REGEX = .(?&amp;lt;Chassis&amp;gt;C\d+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Sep 2015 13:46:46 GMT</pubDate>
    <dc:creator>dturnbull_splun</dc:creator>
    <dc:date>2015-09-01T13:46:46Z</dc:date>
    <item>
      <title>How to make a rex field extraction permanent for a field extraction from source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210691#M61598</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I need to extract the name of the computer generating the log from the file name. I found a way to do so with rex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | rex field=source ".(?&amp;lt;Chassis&amp;gt;C\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That works as it should, but the field is only present for the search creating the field.&lt;BR /&gt;
So I thought I need to extract the field in my props.conf in order to make them permanent.&lt;/P&gt;

&lt;P&gt;What I tried and what I found here on Splunk Answers did not work. I guess it has something to do with extracting a field from the source field.&lt;/P&gt;

&lt;P&gt;Here is what I tried:&lt;/P&gt;

&lt;P&gt;1)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[RT-VPM]
EXTRACT-Chassis = C\d+ in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[RT-VPM]
EXTRACT-Chassis = .(?&amp;lt;Chassis&amp;gt;C\d+) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also tried quite a few variations on 1 and 2, but I did not document all of them.&lt;/P&gt;

&lt;P&gt;I hope somebody is able to help me&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210691#M61598</guid>
      <dc:creator>mlb19</dc:creator>
      <dc:date>2015-09-01T12:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rex field extraction permanent for a field extraction from source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210692#M61599</link>
      <description>&lt;P&gt;You need to use a transform where you have a different source field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# props.conf
[RT-VPM]
REPORT-chassis = chassis

# transforms.conf
[chassis]
SOURCE_KEY=source
REGEX = .(?&amp;lt;Chassis&amp;gt;C\d+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Sep 2015 13:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210692#M61599</guid>
      <dc:creator>dturnbull_splun</dc:creator>
      <dc:date>2015-09-01T13:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rex field extraction permanent for a field extraction from source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210693#M61600</link>
      <description>&lt;P&gt;thank you that worked!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 14:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210693#M61600</guid>
      <dc:creator>mlb19</dc:creator>
      <dc:date>2015-09-01T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rex field extraction permanent for a field extraction from source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210694#M61601</link>
      <description>&lt;P&gt;could this work on lookup output fields also ?? and what will be the solution if not?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 08:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rex-field-extraction-permanent-for-a-field/m-p/210694#M61601</guid>
      <dc:creator>Muwafi</dc:creator>
      <dc:date>2018-03-05T08:41:58Z</dc:date>
    </item>
  </channel>
</rss>

