<?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: Join - how do I fillnull on a join? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/560325#M159239</link>
    <description>&lt;P&gt;Good answer thanks, link updated for newest version (July 2021):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Join" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jul 2021 10:48:59 GMT</pubDate>
    <dc:creator>jfcshunter</dc:creator>
    <dc:date>2021-07-21T10:48:59Z</dc:date>
    <item>
      <title>Join - how do I fillnull on a join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/67352#M16840</link>
      <description>&lt;P&gt;Join is much more efficient.  Is it possible to fillnull on a join so that I can collect the results for events for which there isn't an event to join?&lt;/P&gt;

&lt;P&gt;sourcetype=1 | join host [ search sourcetype=2 | fields host,result ] | table host,result&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 18:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/67352#M16840</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2012-09-21T18:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join - how do I fillnull on a join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/67353#M16841</link>
      <description>&lt;P&gt;If this is related to your transaction question (&lt;A href="http://splunk-base.splunk.com/answers/59493/mostmore-efficient-way-of-counting-incomplete-transactions"&gt;http://splunk-base.splunk.com/answers/59493/mostmore-efficient-way-of-counting-incomplete-transactions&lt;/A&gt;) , you may be disappointed here.  I think &lt;CODE&gt;join&lt;/CODE&gt; will run into subsearch limits and not give you the results you desire when there are enough rows to be joined.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2012 03:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/67353#M16841</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-09-22T03:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Join - how do I fillnull on a join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/67354#M16842</link>
      <description>&lt;P&gt;you can also set the join type to left for example :&lt;/P&gt;

&lt;P&gt;sourcetype=1 | join type=left host [ search sourcetype=2 | fields host,result ] | table host,result&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Join"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Join&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;then you will see every restults from sourcetype, and where there is no events from sourcetype2, the field will only be empty. If you want in place of empty, a 0, then you can add a fillnull...&lt;/P&gt;

&lt;P&gt;sourcetype=1 | join type=left host [ search sourcetype=2 | fields host,result ] | fillnull value=0 | table host,result&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Special:SplunkSearch/docs?q=fillnull"&gt;http://docs.splunk.com/Special:SplunkSearch/docs?q=fillnull&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2013 11:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/67354#M16842</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-06-29T11:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Join - how do I fillnull on a join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/560325#M159239</link>
      <description>&lt;P&gt;Good answer thanks, link updated for newest version (July 2021):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Join" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 10:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-how-do-I-fillnull-on-a-join/m-p/560325#M159239</guid>
      <dc:creator>jfcshunter</dc:creator>
      <dc:date>2021-07-21T10:48:59Z</dc:date>
    </item>
  </channel>
</rss>

