<?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 How to return values from lookup which are not matching the search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-values-from-lookup-which-are-not-matching-the/m-p/413674#M119225</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;
I currently have a search which returns a list of users with employee id from a user lookup&lt;/P&gt;

&lt;P&gt;eg: user lookup has the following information&lt;BR /&gt;
syyyyyy&lt;BR /&gt;
sxxxxxx&lt;BR /&gt;
szzzzzz&lt;/P&gt;

&lt;P&gt;My initial search returns syyyyy, sxxxxx but I want the search to return szzzzzz. But my below search is not returning any results&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;index=idx_xxxxx sourcetype="cisco:xxx" svc | rename user as identity &lt;BR /&gt;
| lookup local=true wfh_names_def identity OUTPUT identity, name&lt;BR /&gt;
| search identity NOT &lt;BR /&gt;
    [| lookup local=true wfh_names_def identity OUTPUT identity, name] *&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Could anyone please help &lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards&lt;BR /&gt;
Kavya Dekkata&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:51:12 GMT</pubDate>
    <dc:creator>kavyadekkata</dc:creator>
    <dc:date>2020-09-30T00:51:12Z</dc:date>
    <item>
      <title>How to return values from lookup which are not matching the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-values-from-lookup-which-are-not-matching-the/m-p/413674#M119225</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
I currently have a search which returns a list of users with employee id from a user lookup&lt;/P&gt;

&lt;P&gt;eg: user lookup has the following information&lt;BR /&gt;
syyyyyy&lt;BR /&gt;
sxxxxxx&lt;BR /&gt;
szzzzzz&lt;/P&gt;

&lt;P&gt;My initial search returns syyyyy, sxxxxx but I want the search to return szzzzzz. But my below search is not returning any results&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;index=idx_xxxxx sourcetype="cisco:xxx" svc | rename user as identity &lt;BR /&gt;
| lookup local=true wfh_names_def identity OUTPUT identity, name&lt;BR /&gt;
| search identity NOT &lt;BR /&gt;
    [| lookup local=true wfh_names_def identity OUTPUT identity, name] *&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Could anyone please help &lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards&lt;BR /&gt;
Kavya Dekkata&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-values-from-lookup-which-are-not-matching-the/m-p/413674#M119225</guid>
      <dc:creator>kavyadekkata</dc:creator>
      <dc:date>2020-09-30T00:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to return values from lookup which are not matching the search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-values-from-lookup-which-are-not-matching-the/m-p/413675#M119226</link>
      <description>&lt;P&gt;Do the lookup first, then use join to combine your search results with the base lookup values.&lt;/P&gt;

&lt;P&gt;For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup host.csv | join type=left host [metadata type=hosts]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doing an individual "| metadata type=hosts" search would give me host "A" and "B". In my csv file, I have "A", "B", "C", "D". Doing the above query would give me everything in my lookup file.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-values-from-lookup-which-are-not-matching-the/m-p/413675#M119226</guid>
      <dc:creator>denzelchung</dc:creator>
      <dc:date>2019-06-12T06:51:08Z</dc:date>
    </item>
  </channel>
</rss>

