<?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: lookup against an extracted field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97008#M25082</link>
    <description>&lt;P&gt;Yes of course. In fact almost all fields are extracted, so this is what lookups normally do. Generally, the order at search time is:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;KV_MODE&lt;/LI&gt;
&lt;LI&gt;EXTRACT&lt;/LI&gt;
&lt;LI&gt;REPORT&lt;/LI&gt;
&lt;LI&gt;FIELDALIAS&lt;/LI&gt;
&lt;LI&gt;LOOKUP&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Wed, 01 Dec 2010 11:11:06 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-12-01T11:11:06Z</dc:date>
    <item>
      <title>lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97007#M25081</link>
      <description>&lt;P&gt;Is it possible to have a lookup table keyed off of an extracted field?&lt;/P&gt;

&lt;P&gt;Given the props:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[foo]
EXTRACT-bu = ^(?&amp;lt;bu&amp;gt;.{5})\- in host
LOOKUP-bu = bu_fields bu
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the transforms:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bu_fields]
filename = buFields.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should this work?&lt;/P&gt;

&lt;P&gt;I believe the lookuptable is there, because this works as expected:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="foo" | lookup bu_fields bu
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Dec 2010 08:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97007#M25081</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2010-12-01T08:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97008#M25082</link>
      <description>&lt;P&gt;Yes of course. In fact almost all fields are extracted, so this is what lookups normally do. Generally, the order at search time is:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;KV_MODE&lt;/LI&gt;
&lt;LI&gt;EXTRACT&lt;/LI&gt;
&lt;LI&gt;REPORT&lt;/LI&gt;
&lt;LI&gt;FIELDALIAS&lt;/LI&gt;
&lt;LI&gt;LOOKUP&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 01 Dec 2010 11:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97008#M25082</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-01T11:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97009#M25083</link>
      <description>&lt;P&gt;Yeah, I've made it work with another test, so something is weird in that config.&lt;/P&gt;

&lt;P&gt;Looks like I'll need to make an indexed field out of bu if I want to search against the fields in the lookup, though.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 12:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97009#M25083</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2010-12-01T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97010#M25084</link>
      <description>&lt;P&gt;well, actually, are you trying to do a reverse lookup? that won't work if the extracted value is not from the &lt;CODE&gt;_raw&lt;/CODE&gt; field, and yours is from &lt;CODE&gt;host&lt;/CODE&gt;. the forward lookup should work okay though. You can make it work with much-diminished performance by setting INDEXED_VALUE = false in fields.conf for the &lt;CODE&gt;bu&lt;/CODE&gt; field.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 12:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97010#M25084</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-01T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97011#M25085</link>
      <description>&lt;P&gt;or by using &lt;CODE&gt;where&lt;/CODE&gt; or &lt;CODE&gt;search&lt;/CODE&gt; after the initial search, or by creating an indexed field.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97011#M25085</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-01T13:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97012#M25086</link>
      <description>&lt;P&gt;I think an indexed field is the answer in this case.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 14:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97012#M25086</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2010-12-01T14:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: lookup against an extracted field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97013#M25087</link>
      <description>&lt;P&gt;This answer was written before calculated fields.  Now that we have calculated fields:  4.5 = EVAL (calculated fields)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 18:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-against-an-extracted-field/m-p/97013#M25087</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2013-09-12T18:21:50Z</dc:date>
    </item>
  </channel>
</rss>

