<?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: How do you perform a search based on lookup values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393589#M114452</link>
    <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/148120"&gt;@ndaniel88&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;try liek this &lt;BR /&gt;
    | inputlookup my_names.csv | fields Name | rename Name as names &lt;BR /&gt;
    |append [search index=my_index sourcetype=my_st names=* | fields number names]&lt;BR /&gt;
    | reverse |dedup name |sort name |fillnull value="Not Found" number&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:04:09 GMT</pubDate>
    <dc:creator>harishalipaka</dc:creator>
    <dc:date>2020-09-29T22:04:09Z</dc:date>
    <item>
      <title>How do you perform a search based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393586#M114449</link>
      <description>&lt;P&gt;Hello, I'm trying to do an outer join, but without actually using a join, &lt;/P&gt;

&lt;P&gt;I have a lookup with names and based on these names, I need to perform the search and return all values on the lookup, even if they were not found on the search. For example:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;lookup&lt;/STRONG&gt;&lt;BR /&gt;
name&lt;BR /&gt;
a&lt;BR /&gt;
b&lt;BR /&gt;
c&lt;BR /&gt;
d&lt;BR /&gt;
e&lt;BR /&gt;
f&lt;BR /&gt;
g&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search&lt;/STRONG&gt;&lt;BR /&gt;
name    | number&lt;BR /&gt;
a          | 12:34:56&lt;BR /&gt;
b          |  09:87:76&lt;BR /&gt;
e          |  45:23:65&lt;/P&gt;

&lt;P&gt;So, the result should be something like:&lt;/P&gt;

&lt;P&gt;a   | 12:34:56&lt;BR /&gt;
b   | 09:87:76&lt;BR /&gt;
c   | Not found&lt;BR /&gt;
d   | Not found&lt;BR /&gt;
e   | 45:23:65&lt;BR /&gt;
f   | Not found&lt;BR /&gt;
g   | Not found&lt;/P&gt;

&lt;P&gt;This is my search so far which is working, but I dont want to use join, because it takes sooo long to complete because a big amount of events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup my_names.csv | fields Name | rename Name as names         
| join type=left names[search index=my_index sourcetype=my_st names=* | fields number names
| dedup names
| stats latest(number) by names 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 22:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393586#M114449</guid>
      <dc:creator>ndaniel88</dc:creator>
      <dc:date>2018-11-14T22:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you perform a search based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393587#M114450</link>
      <description>&lt;P&gt;hi @ndaniel88 &lt;/P&gt;

&lt;P&gt;try like this you will get..&lt;BR /&gt;
pls accept answer or upvote it if helped.:)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults |eval name="a"  |append [|makeresults |eval name="b"] |append [|makeresults |eval name="c"]|append [|makeresults |eval name="d"] |table name|append [|makeresults |eval name="a" ,number="12:34:56" |append [|makeresults |eval name="c" ,number="45:23:65"] |table name number] | reverse |dedup name |sort name |fillnull value="Not Found" number
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 10:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393587#M114450</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-11-15T10:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you perform a search based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393588#M114451</link>
      <description>&lt;P&gt;I'm not sure this is what I'm looking for. I don't get how to transform this for use a lookup and a search.&lt;/P&gt;

&lt;P&gt;Probably I didn't explain myself correctly. My main information comes from the lookup, even if there is match or not inside the search, I need to print all values from the lookup.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393588#M114451</guid>
      <dc:creator>ndaniel88</dc:creator>
      <dc:date>2018-11-15T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you perform a search based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393589#M114452</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/148120"&gt;@ndaniel88&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;try liek this &lt;BR /&gt;
    | inputlookup my_names.csv | fields Name | rename Name as names &lt;BR /&gt;
    |append [search index=my_index sourcetype=my_st names=* | fields number names]&lt;BR /&gt;
    | reverse |dedup name |sort name |fillnull value="Not Found" number&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-perform-a-search-based-on-lookup-values/m-p/393589#M114452</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-09-29T22:04:09Z</dc:date>
    </item>
  </channel>
</rss>

