<?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 to include all results from a joined lookup table, even if the search does not return all matching fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116369#M30897</link>
    <description>&lt;P&gt;Poking the thread. &lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2014 17:40:48 GMT</pubDate>
    <dc:creator>kobie</dc:creator>
    <dc:date>2014-11-21T17:40:48Z</dc:date>
    <item>
      <title>How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116368#M30896</link>
      <description>&lt;P&gt;Case: &lt;BR /&gt;
 1. Lookup table (ex below)&lt;BR /&gt;
     name, day&lt;BR /&gt;
     example1,1&lt;BR /&gt;
     example2,2&lt;BR /&gt;
 2. Search that joins the lookup table and adds the day field&lt;BR /&gt;
     eventtype=Eventtype1 | lookup CustomLookupTable name | table name, code&lt;/P&gt;

&lt;P&gt;All of this works fine and I get results shows the name and code. &lt;/P&gt;

&lt;P&gt;My issue lies in the fact that sometimes I will have names that do not appear in the search, but I want them to display regardless. Example below:&lt;/P&gt;

&lt;P&gt;CustomLookupTable&lt;BR /&gt;&lt;BR /&gt;
 name, day&lt;BR /&gt;
 example1,1&lt;BR /&gt;&lt;BR /&gt;
 example2,2&lt;BR /&gt;&lt;BR /&gt;
example3, 3&lt;BR /&gt;&lt;BR /&gt;
example4, 4&lt;/P&gt;

&lt;P&gt;Search Results&lt;BR /&gt;
example1&lt;BR /&gt;
example2&lt;BR /&gt;
example4&lt;/P&gt;

&lt;P&gt;Table Output&lt;BR /&gt;
example1      1&lt;BR /&gt;
example2      2&lt;BR /&gt;
example4      4&lt;/P&gt;

&lt;P&gt;What I would like to see&lt;BR /&gt;
example1      1&lt;BR /&gt;
example2      2&lt;BR /&gt;
example3      3&lt;BR /&gt;
example4      4&lt;/P&gt;

&lt;P&gt;I have simplified everything in the search to make it easier to write, but there are other fields being populated in the table from the search. As you can see in what i would like to see it is going to show all results from the lookup table regardless if it finds it in the table or not and then will add the fields I want from the search. &lt;/P&gt;

&lt;P&gt;I hope all this makes sense. Thank you in advance. &lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116368#M30896</guid>
      <dc:creator>kobie</dc:creator>
      <dc:date>2014-11-12T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116369#M30897</link>
      <description>&lt;P&gt;Poking the thread. &lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 17:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116369#M30897</guid>
      <dc:creator>kobie</dc:creator>
      <dc:date>2014-11-21T17:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116370#M30898</link>
      <description>&lt;P&gt;I don't really understand what you're trying to achieve, but the inputlookup command should give you the output you've described. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup CustomLookupTable
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I suspect that isn't really you're requirement. I would probably start by trying to use the inputlookup command to read in the lookup as the start of the search, and then use a join type=outer with your search of eventtype=Eventtype1 as the subsearch within the join. You may also find the fillnull command useful if you need to give values to fields which are null in the output. &lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 18:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116370#M30898</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2014-11-21T18:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116371#M30899</link>
      <description>&lt;P&gt;Can you provide an example search?  Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 19:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116371#M30899</guid>
      <dc:creator>kobie</dc:creator>
      <dc:date>2014-11-21T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116372#M30900</link>
      <description>&lt;P&gt;Not really as I said I don't understand what you're trying to achieve. I need more details. What is your current search?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 19:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116372#M30900</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2014-11-21T19:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116373#M30901</link>
      <description>&lt;P&gt;Current search is eventtype=Eventtype1 | lookup CustomLookupTable name | table name, code&lt;/P&gt;

&lt;P&gt;Everything comes out fine with the lookup table adding the name field into the search. My problem is that I want all names from the lookup table to show up in the search regardless if the name showed up in the eventype or not. &lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 19:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116373#M30901</guid>
      <dc:creator>kobie</dc:creator>
      <dc:date>2014-11-21T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116374#M30902</link>
      <description>&lt;P&gt;Given the limited information you've provided and I don't have a Splunk instance to hand - try something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup CustomLookupTable 
| join type=outer name [search eventtype=Eventtype1]
| ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Nov 2014 19:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116374#M30902</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2014-11-21T19:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to include all results from a joined lookup table, even if the search does not return all matching fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116375#M30903</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=Eventtype1 | table name| append [| inputlookup CustomLookupTable | table name, code] | eval code=coalesce(code,"Not Available") | stats count by name code | table name code
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Nov 2014 20:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-all-results-from-a-joined-lookup-table-even-if/m-p/116375#M30903</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-21T20:47:39Z</dc:date>
    </item>
  </channel>
</rss>

