<?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: Splunk Lookup compare with index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659111#M227624</link>
    <description>&lt;P&gt;Try this, it works for me&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index
| stats count by country_name
| join type=left country_name
    [| inputlookup tests.csv
    | stats count as Exists by country_name]
| fillnull Exists value=0
| where Exists=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 18:05:23 GMT</pubDate>
    <dc:creator>Thulasinathan_M</dc:creator>
    <dc:date>2023-09-29T18:05:23Z</dc:date>
    <item>
      <title>Splunk Lookup compare with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659103#M227618</link>
      <description>&lt;P&gt;Query to output missing data in lookup file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have a lookup file with below data&lt;BR /&gt;&lt;BR /&gt;country_name&lt;BR /&gt;--------------------&lt;BR /&gt;&lt;BR /&gt;Brazil&lt;BR /&gt;Norway&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My index search returns below data for field(country_name)&lt;BR /&gt;&lt;BR /&gt;Brazil&lt;BR /&gt;Norway&lt;BR /&gt;Spain&lt;BR /&gt;&lt;BR /&gt;------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do I write a query (using join or append)- to output&amp;nbsp; only "Spain" in the results.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 17:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659103#M227618</guid>
      <dc:creator>Krish14</dc:creator>
      <dc:date>2023-09-29T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lookup compare with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659106#M227621</link>
      <description>&lt;P&gt;Couldn't able to test this, but should work. Please let me know if it doesn't work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index country_name
| table country_name
| join type=left country_name
    [search 
| inputlookup 
| stats count as Exist by country_name]
| fillnull Exist value=0
| where Exist=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 17:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659106#M227621</guid>
      <dc:creator>Thulasinathan_M</dc:creator>
      <dc:date>2023-09-29T17:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lookup compare with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659108#M227622</link>
      <description>&lt;P&gt;Looks like there is a syntax error "search" keyword&amp;nbsp;&lt;BR /&gt;I removed it and tried with below, however,&amp;nbsp; the output has all the data from index.&lt;BR /&gt;&lt;BR /&gt;We are only interested to output data from index - that is not present in lookup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index country_name
| table country_name
| join type=left country_name
[ | inputlookup 
| stats count as Exist by country_name]
| fillnull Exist value=0
| where Exist=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 17:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659108#M227622</guid>
      <dc:creator>Krish14</dc:creator>
      <dc:date>2023-09-29T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lookup compare with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659111#M227624</link>
      <description>&lt;P&gt;Try this, it works for me&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index
| stats count by country_name
| join type=left country_name
    [| inputlookup tests.csv
    | stats count as Exists by country_name]
| fillnull Exists value=0
| where Exists=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 18:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659111#M227624</guid>
      <dc:creator>Thulasinathan_M</dc:creator>
      <dc:date>2023-09-29T18:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lookup compare with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659112#M227625</link>
      <description>&lt;P&gt;Excellent, Works fine for me too. Thank you for prompt response! Much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 18:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659112#M227625</guid>
      <dc:creator>Krish14</dc:creator>
      <dc:date>2023-09-29T18:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lookup compare with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659113#M227626</link>
      <description>&lt;P&gt;Happy that worked for you!!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 18:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Lookup-compare-with-index/m-p/659113#M227626</guid>
      <dc:creator>Thulasinathan_M</dc:creator>
      <dc:date>2023-09-29T18:13:32Z</dc:date>
    </item>
  </channel>
</rss>

