<?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 inputlookup and append search problem. Expect output all rows but only rows with result shows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-and-append-search-problem-Expect-output-all-rows-but/m-p/323125#M96410</link>
    <description>&lt;P&gt;Please help, want to do a search based on a table of sever-list and find last update time from a  server log. I try to create a table first with 4 server listed, I had one server 2.2.2.2. had result in server log. so I expect the result is 4 rows with 2.2.2.2 had totalcount and date and other is empty/null but showing 4 rows. But the result is the inputlookup and append/appendcols will show 1 row only.&lt;/P&gt;

&lt;P&gt;Any method to show 4 rows instead. Can any one had experience on it. Thanks&lt;/P&gt;

&lt;P&gt;Using this Searchstring sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=true hosts_1.csv  | table yumclientip,team,is_expected,totalcount,yumdate | join yumclientip append [ search xxx yyy zzzz | setfields count="0" yumdate="NA" | stats count as totalcount by yumclientip, yumdate  | fillnull value="(empty)" "totalcount" "yumdate"  | dedup yumclientip sortby +_time ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;csv file hosts)1.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;##################
yumclientip,team,is_expected
1.1.1.1,teamA,true
2.2.2.2,teamB,true
3.3.3.3,teamC,true
4.4.4.4,teamD,true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result get (only 2.2.2.2 had data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;########################
yumclientip,team,is_expected,totalcount,yumdate
2.2.2.2,teamA,true,18,2017-07-23
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But expect result want 4 rows and not 1 rows only&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;####################
yumclientip,team,is_expected,totalcount,yumdate
1.1.1.1,teamA,true,empty,empty
2.2.2.2,teamB,true,18,2017-07-23
3.3.3.3,teamC,true,empty,empty
4.4.4.4.teamD,true,empty,empty
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 23 Jul 2017 05:52:41 GMT</pubDate>
    <dc:creator>netinstall</dc:creator>
    <dc:date>2017-07-23T05:52:41Z</dc:date>
    <item>
      <title>inputlookup and append search problem. Expect output all rows but only rows with result shows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-and-append-search-problem-Expect-output-all-rows-but/m-p/323125#M96410</link>
      <description>&lt;P&gt;Please help, want to do a search based on a table of sever-list and find last update time from a  server log. I try to create a table first with 4 server listed, I had one server 2.2.2.2. had result in server log. so I expect the result is 4 rows with 2.2.2.2 had totalcount and date and other is empty/null but showing 4 rows. But the result is the inputlookup and append/appendcols will show 1 row only.&lt;/P&gt;

&lt;P&gt;Any method to show 4 rows instead. Can any one had experience on it. Thanks&lt;/P&gt;

&lt;P&gt;Using this Searchstring sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=true hosts_1.csv  | table yumclientip,team,is_expected,totalcount,yumdate | join yumclientip append [ search xxx yyy zzzz | setfields count="0" yumdate="NA" | stats count as totalcount by yumclientip, yumdate  | fillnull value="(empty)" "totalcount" "yumdate"  | dedup yumclientip sortby +_time ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;csv file hosts)1.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;##################
yumclientip,team,is_expected
1.1.1.1,teamA,true
2.2.2.2,teamB,true
3.3.3.3,teamC,true
4.4.4.4,teamD,true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result get (only 2.2.2.2 had data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;########################
yumclientip,team,is_expected,totalcount,yumdate
2.2.2.2,teamA,true,18,2017-07-23
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But expect result want 4 rows and not 1 rows only&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;####################
yumclientip,team,is_expected,totalcount,yumdate
1.1.1.1,teamA,true,empty,empty
2.2.2.2,teamB,true,18,2017-07-23
3.3.3.3,teamC,true,empty,empty
4.4.4.4.teamD,true,empty,empty
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jul 2017 05:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-and-append-search-problem-Expect-output-all-rows-but/m-p/323125#M96410</guid>
      <dc:creator>netinstall</dc:creator>
      <dc:date>2017-07-23T05:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup and append search problem. Expect output all rows but only rows with result shows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-and-append-search-problem-Expect-output-all-rows-but/m-p/323126#M96411</link>
      <description>&lt;P&gt;&lt;CODE&gt;append&lt;/CODE&gt; is not a valid keyword for &lt;CODE&gt;join&lt;/CODE&gt;.  What this line &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| join yumclientip append     [ search ...]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...will do is take the results from the first part of the search, and then try to join that set of records to the set of records returned by the second search, joining them based on the values in the fields named &lt;CODE&gt;yumclientip&lt;/CODE&gt; and &lt;CODE&gt;append&lt;/CODE&gt; on each side of the search.&lt;/P&gt;

&lt;P&gt;Since the only fields on the right side of the search are &lt;CODE&gt;totalcount&lt;/CODE&gt;, &lt;CODE&gt;yumclientip&lt;/CODE&gt; and &lt;CODE&gt;yumdate&lt;/CODE&gt;, there will never be a match found.&lt;/P&gt;

&lt;P&gt;Delete the word "append" from the &lt;CODE&gt;join&lt;/CODE&gt; clause and see what happens.  &lt;/P&gt;

&lt;P&gt;I'm still not sure that you have the correct code for what you want, but at least you will get some results.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 21:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-and-append-search-problem-Expect-output-all-rows-but/m-p/323126#M96411</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-23T21:36:04Z</dc:date>
    </item>
  </channel>
</rss>

