<?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: Best way to search using a lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64104#M15855</link>
    <description>&lt;P&gt;&lt;CODE&gt;sourcetype=web | join src_ip [inputlookup iptable]&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2010 23:50:31 GMT</pubDate>
    <dc:creator>Jason</dc:creator>
    <dc:date>2010-10-05T23:50:31Z</dc:date>
    <item>
      <title>Best way to search using a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64103#M15854</link>
      <description>&lt;P&gt;I'm running a search across a bunch of data, say web logs, that has a lot of different &lt;CODE&gt;src_ip&lt;/CODE&gt;s.&lt;/P&gt;

&lt;P&gt;I make a lookup of a handful of &lt;CODE&gt;src_ip&lt;/CODE&gt;s that I want to take a look at:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;lookup table [iptable]

src_ip
1.2.3.4
1.2.3.5
1.2.4.6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the best way to search across all of my data (sourcetype=web, for instance) and ONLY show items matching my lookup file?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 23:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64103#M15854</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-05T23:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to search using a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64104#M15855</link>
      <description>&lt;P&gt;&lt;CODE&gt;sourcetype=web | join src_ip [inputlookup iptable]&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 23:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64104#M15855</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-05T23:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to search using a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64105#M15856</link>
      <description>&lt;P&gt;Assuming there is a field in your data called &lt;CODE&gt;src_ip&lt;/CODE&gt;, and that you have (say) millions of events and less than a few hundred entries in your lookup table, the most efficient way is probably:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=web [ inputlookup iptable | fields src_ip ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the field in the sourcetype is called, say, &lt;CODE&gt;source_address&lt;/CODE&gt;, you could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=web [ inputlookup iptable | fields src_ip | rename src_ip as souce_address ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Oct 2010 00:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-way-to-search-using-a-lookup-table/m-p/64105#M15856</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-10-06T00:01:32Z</dc:date>
    </item>
  </channel>
</rss>

