<?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 search lookup table for value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-lookup-table-for-value/m-p/64583#M15962</link>
    <description>&lt;P&gt;so I can grep the look-up table to find an entry&lt;/P&gt;

&lt;P&gt;I can see the contents of the look-up table by doing this&lt;BR /&gt;
    | inputlookup Domains.csv &lt;/P&gt;

&lt;P&gt;I want to find a specific entry in the look-up table but I cant seem to find the right syntax&lt;/P&gt;

&lt;P&gt;I tried this &lt;CODE&gt;| inputlookup Domains.csv | search google.com&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and this &lt;CODE&gt;search "google.com" [| inputlookup Domains.csv ]&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2013 18:52:10 GMT</pubDate>
    <dc:creator>hartfoml</dc:creator>
    <dc:date>2013-06-14T18:52:10Z</dc:date>
    <item>
      <title>search lookup table for value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-lookup-table-for-value/m-p/64583#M15962</link>
      <description>&lt;P&gt;so I can grep the look-up table to find an entry&lt;/P&gt;

&lt;P&gt;I can see the contents of the look-up table by doing this&lt;BR /&gt;
    | inputlookup Domains.csv &lt;/P&gt;

&lt;P&gt;I want to find a specific entry in the look-up table but I cant seem to find the right syntax&lt;/P&gt;

&lt;P&gt;I tried this &lt;CODE&gt;| inputlookup Domains.csv | search google.com&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and this &lt;CODE&gt;search "google.com" [| inputlookup Domains.csv ]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 18:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-lookup-table-for-value/m-p/64583#M15962</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2013-06-14T18:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: search lookup table for value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-lookup-table-for-value/m-p/64584#M15963</link>
      <description>&lt;P&gt;You will have to use the meta data (field) in your search condition. Using a free form search where the job is to find a text string in the raw data will not work. There is no _raw data.&lt;/P&gt;

&lt;P&gt;For instance, assume that your CSV contains very important domains like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;domain
google.com
splunk.com
theoatmeal.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you run the search, you get the following results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup Domains.csv 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled301.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If you use the metafield obtained, then you can isolate the most important domain.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup Domains.csv | search domain="theoatmeal.com"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Untitled302.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Then you can enjoy the most important site on the Web.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;gc&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 19:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-lookup-table-for-value/m-p/64584#M15963</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2013-06-14T19:37:34Z</dc:date>
    </item>
  </channel>
</rss>

