<?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 Difference between lookup and search - i only want the unique value from the lookup that doesnt exist in the search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-lookup-and-search-i-only-want-the-unique/m-p/597564#M208053</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a splunk query which i cannot get to work for the life of me:&amp;nbsp; This is the search&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|inputlookup feeds.csv | fields "Threat Feed" |table "Threat Feed" |eval observed=1
|append [search index=main sourcetype="feeds" source="/opt/splunkforwarder/bin/scripts/stats.sh" type=feed
|rename dn as "Threat Feed" customerID as companyId |table "Threat Feed" companyId
| join companyId
[| dbxquery query="mysql query" ]
|eval observed = 0]
|stats min(observed) as observed values(customerId) as cs by "Threat Feed" | where observed =1&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Current Result:&lt;BR /&gt;&lt;BR /&gt;Threat Feed (column name)&lt;BR /&gt;Feed55 &amp;lt;&amp;lt;&amp;lt; Correct feed that should not exist in any of the customers&lt;BR /&gt;&lt;BR /&gt;The csv file only has a column named Threat Feed, there are five rows only.&lt;BR /&gt;&lt;BR /&gt;The search results are around 25 different feeds per customer (50 customers)&lt;BR /&gt;&lt;BR /&gt;I am interested in showing which feeds from the CSV do not exist in the search results i.e from the 25 feeds, i need this by customer so that i can create an alert.&lt;/P&gt;
&lt;P&gt;At the moment i am getting an output of the 1 feed name that doesnt exist, but i cant link this to the customer as the csv file does not have a customerID field as its a generic file.&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 14:14:56 GMT</pubDate>
    <dc:creator>greekleo89</dc:creator>
    <dc:date>2022-05-12T14:14:56Z</dc:date>
    <item>
      <title>Difference between lookup and search - i only want the unique value from the lookup that doesnt exist in the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-lookup-and-search-i-only-want-the-unique/m-p/597564#M208053</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a splunk query which i cannot get to work for the life of me:&amp;nbsp; This is the search&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|inputlookup feeds.csv | fields "Threat Feed" |table "Threat Feed" |eval observed=1
|append [search index=main sourcetype="feeds" source="/opt/splunkforwarder/bin/scripts/stats.sh" type=feed
|rename dn as "Threat Feed" customerID as companyId |table "Threat Feed" companyId
| join companyId
[| dbxquery query="mysql query" ]
|eval observed = 0]
|stats min(observed) as observed values(customerId) as cs by "Threat Feed" | where observed =1&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Current Result:&lt;BR /&gt;&lt;BR /&gt;Threat Feed (column name)&lt;BR /&gt;Feed55 &amp;lt;&amp;lt;&amp;lt; Correct feed that should not exist in any of the customers&lt;BR /&gt;&lt;BR /&gt;The csv file only has a column named Threat Feed, there are five rows only.&lt;BR /&gt;&lt;BR /&gt;The search results are around 25 different feeds per customer (50 customers)&lt;BR /&gt;&lt;BR /&gt;I am interested in showing which feeds from the CSV do not exist in the search results i.e from the 25 feeds, i need this by customer so that i can create an alert.&lt;/P&gt;
&lt;P&gt;At the moment i am getting an output of the 1 feed name that doesnt exist, but i cant link this to the customer as the csv file does not have a customerID field as its a generic file.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 14:14:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-lookup-and-search-i-only-want-the-unique/m-p/597564#M208053</guid>
      <dc:creator>greekleo89</dc:creator>
      <dc:date>2022-05-12T14:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lookup and search - i only want the unique value from the lookup that doesnt exist in the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-lookup-and-search-i-only-want-the-unique/m-p/597908#M208202</link>
      <description>&lt;P&gt;bump bump....&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 08:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-lookup-and-search-i-only-want-the-unique/m-p/597908#M208202</guid>
      <dc:creator>greekleo89</dc:creator>
      <dc:date>2022-05-16T08:19:46Z</dc:date>
    </item>
  </channel>
</rss>

