<?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/108519#M28275</link>
    <description>&lt;P&gt;there is only 1 column in ip_list with the name "ip"&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2011 13:05:02 GMT</pubDate>
    <dc:creator>gohar</dc:creator>
    <dc:date>2011-05-25T13:05:02Z</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/108514#M28270</link>
      <description>&lt;P&gt;I'm running a search across a bunch of data, say syslogs, that has a lot of different source_IPs.&lt;/P&gt;

&lt;P&gt;I make a lookup table of name [ip_list]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src_ip
10.10.10.1
10.10.10.2
10.10.10.3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the best way to search across all of my data and ONLY show items from lookup tables that are NOT match with field&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2011 17:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108514#M28270</guid>
      <dc:creator>gohar</dc:creator>
      <dc:date>2011-05-24T17:14:40Z</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/108515#M28271</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search terms&amp;gt; NOT [ | inputlookup &amp;lt;your lookup&amp;gt; ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;eg.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* NOT [ | inputlookup ip_list ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To inspect which search string is generated by the subsearch, you can execute&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup ip_list | format
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2011 18:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108515#M28271</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-05-24T18:09:58Z</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/108516#M28272</link>
      <description>&lt;P&gt;Not working. What I am trying is &lt;/P&gt;

&lt;P&gt;I want to compare my field(source_IPs) with lookup file(ip_list) and generates those IPs from lookup file that are not matched with source_IPs field.&lt;/P&gt;

&lt;P&gt;Also, can I trim my desired output by using stats command that will show only IPs&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108516#M28272</guid>
      <dc:creator>gohar</dc:creator>
      <dc:date>2020-09-28T09:36: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/108517#M28273</link>
      <description>&lt;P&gt;source="/export/home/azubair/Audit_Report" inputlookup ip_list NOT [ | fields source_IPs ]&lt;/P&gt;

&lt;P&gt;No output&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108517#M28273</guid>
      <dc:creator>gohar</dc:creator>
      <dc:date>2020-09-28T09:36:34Z</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/108518#M28274</link>
      <description>&lt;P&gt;What is the name of the column you want to compare it with in the lookup?&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2011 12:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108518#M28274</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-05-25T12:21:59Z</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/108519#M28275</link>
      <description>&lt;P&gt;there is only 1 column in ip_list with the name "ip"&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2011 13:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108519#M28275</guid>
      <dc:creator>gohar</dc:creator>
      <dc:date>2011-05-25T13:05:02Z</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/108520#M28276</link>
      <description>&lt;P&gt;source="/export/home/azubair/Audit_Report" NOT [ | inputlookup ip_list | fields ip | rename ip as source_IPs ] | stats count by source_IPs&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108520#M28276</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2020-09-28T09:36:39Z</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/108521#M28277</link>
      <description>&lt;P&gt;thanks man. It shows ips of the field source_IPs that are not matched with my lookup table. &lt;BR /&gt;
I want the other way round, means want IPs from my lookup table that are not matched with field source_IPs&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108521#M28277</guid>
      <dc:creator>gohar</dc:creator>
      <dc:date>2020-09-28T09:36:47Z</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/108522#M28278</link>
      <description>&lt;P&gt;Ah, I get it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Here you go:&lt;/P&gt;

&lt;P&gt;| inputlookup ip_list | fields ip | rename ip as source_IPs | search NOT [ search source="/export/home/azubair/Audit_Report" | dedup source_IPs | fields source_IPs ]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108522#M28278</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2020-09-28T09:36:50Z</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/108523#M28279</link>
      <description>&lt;P&gt;thanks man, run with the flow.&lt;BR /&gt;
just for knowledge,your previous command worked well by showing all events without "|stats count by source_IPs" but when we append stats it process 14% of my file and display no results. Is stats command take too much processing??&lt;/P&gt;

&lt;P&gt;source="/export/home/azubair/Audit_Report" NOT [ | inputlookup ip_list | fields ip | rename ip as source_IPs ] | stats count by source_IPs&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Best-Way-to-search-using-a-lookup-table/m-p/108523#M28279</guid>
      <dc:creator>gohar</dc:creator>
      <dc:date>2020-09-28T09:36:55Z</dc:date>
    </item>
  </channel>
</rss>

