<?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 Field extraction optimisation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-optimisation/m-p/59155#M14567</link>
    <description>&lt;P&gt;I want to extract the recipient and sender domains from e-mail addresses that appear in my logs. I can extract them from _raw:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-ToDomain = (?i)to=&amp;lt;[^@]*@(?&amp;lt;ToDomain&amp;gt;[^&amp;gt;]*)&lt;BR /&gt;
EXTRACT-FromDomain = (?i)From=&amp;lt;[^@]*@(?&amp;lt;FromDomain&amp;gt;[^&amp;gt;]*)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or from existing fields:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-ToDomain = @(?P&amp;lt;ToDomain&amp;gt;[^&amp;gt;]*) in to&lt;BR /&gt;
EXTRACT-FromDomain = @(?P&amp;lt;FromDomain&amp;gt;[^&amp;gt;]*) in From&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is one method more efficient than the other?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2012 00:25:02 GMT</pubDate>
    <dc:creator>FunPolice</dc:creator>
    <dc:date>2012-01-27T00:25:02Z</dc:date>
    <item>
      <title>Field extraction optimisation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-optimisation/m-p/59155#M14567</link>
      <description>&lt;P&gt;I want to extract the recipient and sender domains from e-mail addresses that appear in my logs. I can extract them from _raw:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-ToDomain = (?i)to=&amp;lt;[^@]*@(?&amp;lt;ToDomain&amp;gt;[^&amp;gt;]*)&lt;BR /&gt;
EXTRACT-FromDomain = (?i)From=&amp;lt;[^@]*@(?&amp;lt;FromDomain&amp;gt;[^&amp;gt;]*)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or from existing fields:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-ToDomain = @(?P&amp;lt;ToDomain&amp;gt;[^&amp;gt;]*) in to&lt;BR /&gt;
EXTRACT-FromDomain = @(?P&amp;lt;FromDomain&amp;gt;[^&amp;gt;]*) in From&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is one method more efficient than the other?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 00:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-optimisation/m-p/59155#M14567</guid>
      <dc:creator>FunPolice</dc:creator>
      <dc:date>2012-01-27T00:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction optimisation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-optimisation/m-p/59156#M14568</link>
      <description>&lt;P&gt;Strictly speaking the second option would be a bit more efficient, but in reality I highly doubt you would be able to notice any difference.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 08:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-optimisation/m-p/59156#M14568</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-01-27T08:54:48Z</dc:date>
    </item>
  </channel>
</rss>

