<?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: Using multiple lookup tables in a query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668912#M229442</link>
    <description>&lt;P&gt;That can be accomplished with a single list by good list management.&amp;nbsp; Anything on the baddomains list should not be in the gooddomains list and vice versa.&lt;/P&gt;&lt;P&gt;That said, what you have should work, but not as efficiently as a single list.&amp;nbsp; A domain on both lists will not appear in the results, which is the intent.&lt;/P&gt;&lt;P&gt;For debugging purposes, run each subsearch on its own with &lt;FONT face="courier new,courier"&gt;| format&lt;/FONT&gt; appended to verify it returns the expected results.&amp;nbsp; You may need to leave the format command in the final query, combined.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 19:07:43 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-11-16T19:07:43Z</dc:date>
    <item>
      <title>Using multiple lookup tables in a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668909#M229439</link>
      <description>&lt;P&gt;index=netlogs [| inputlookup baddomains.csv | eval url = "*.domain."*" | fields url] NOT [| inputlookup good_domains.csv | fields domain]&lt;/P&gt;&lt;P&gt;I don't think my search is doing what I want it to do. I would like to take the bad domains from the first lookup table and search the netlogs index to see if there are any hits. however, i would like to remove the good domains from the second lookup table from the search. Anyone know if there is a better way to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 18:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668909#M229439</guid>
      <dc:creator>MM0071</dc:creator>
      <dc:date>2023-11-16T18:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookup tables in a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668912#M229442</link>
      <description>&lt;P&gt;That can be accomplished with a single list by good list management.&amp;nbsp; Anything on the baddomains list should not be in the gooddomains list and vice versa.&lt;/P&gt;&lt;P&gt;That said, what you have should work, but not as efficiently as a single list.&amp;nbsp; A domain on both lists will not appear in the results, which is the intent.&lt;/P&gt;&lt;P&gt;For debugging purposes, run each subsearch on its own with &lt;FONT face="courier new,courier"&gt;| format&lt;/FONT&gt; appended to verify it returns the expected results.&amp;nbsp; You may need to leave the format command in the final query, combined.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 19:07:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668912#M229442</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-16T19:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookup tables in a query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668959#M229465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250650"&gt;@MM0071&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;let me understand, you want to filter the results of the main search using the first lookup, already filtered suing the second one, is it correct?&lt;/P&gt;&lt;P&gt;If this is your requirement, my first hint is to run a search the filters the raws of the first lookup using the second on so you have to use only one lookup.&lt;/P&gt;&lt;P&gt;Anyway, if you want to use both the lookups in the same search, you can use your search and it should work fine&lt;/P&gt;&lt;P&gt;or use the second lookup in the first lookup subsearch:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=netlogs [| inputlookup baddomains.csv | search NOT [| inputlookup good_domains.csv | fields domain] | eval url = "*.domain."*" | fields url] &lt;/LI-CODE&gt;&lt;P&gt;or something similar.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 07:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookup-tables-in-a-query/m-p/668959#M229465</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-17T07:24:43Z</dc:date>
    </item>
  </channel>
</rss>

