<?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: Using transforms.conf to create a new field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23197#M177446</link>
    <description>&lt;P&gt;Thank you, sir!  That was my next destination.  Incidentally, is there data regarding the performance of various actions, or some sort of performance priority chart?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2011 07:48:18 GMT</pubDate>
    <dc:creator>mw</dc:creator>
    <dc:date>2011-01-10T07:48:18Z</dc:date>
    <item>
      <title>Using transforms.conf to create a new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23195#M177444</link>
      <description>&lt;P&gt;I have events which include:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... relevant=False ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I'd like to transform those at search time into a field that doesn't yet exist:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... compliant=True ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I thought that this transforms entry, along with the associated props REPORT would do it, but I'm missing something:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Flip the relevant result to a compliant field
[rtc_comp]
SOURCE_KEY = relevant
DEST_KEY = compliant
REGEX = False
FORMAT = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2011 13:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23195#M177444</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-01-08T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms.conf to create a new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23196#M177445</link>
      <description>&lt;P&gt;The problem here is probably that regex-based field extractions take place before automatic field=value extractions. Your best bet here isn't to use field extractions to map relevant to compliant, but rather to use a csv lookup table to create the new field. It will be higher performance especially if you want to refer to "compliant" in the search itself.&lt;/P&gt;

&lt;P&gt;A good introduction is at: &lt;A href="http://blogs.splunk.com/2009/07/27/enriching-data-with-lookups-part-1/" rel="nofollow"&gt;http://blogs.splunk.com/2009/07/27/enriching-data-with-lookups-part-1/&lt;/A&gt; or &lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Addfieldsfromexternaldatasources" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2011 11:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23196#M177445</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2011-01-09T11:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms.conf to create a new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23197#M177446</link>
      <description>&lt;P&gt;Thank you, sir!  That was my next destination.  Incidentally, is there data regarding the performance of various actions, or some sort of performance priority chart?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2011 07:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-conf-to-create-a-new-field/m-p/23197#M177446</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-01-10T07:48:18Z</dc:date>
    </item>
  </channel>
</rss>

