<?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: empty fields after a left join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634334#M220359</link>
    <description>&lt;P&gt;Using join is not generally a good idea in Splunk as it has limitations which may silently affect your data.&lt;/P&gt;&lt;P&gt;join functionality is generally achieved in Splunk using this construct&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=lab (sourcetype=A OR sourcetype=cmdb)
| stats values(*) as * by src_host&lt;/LI-CODE&gt;&lt;P&gt;This will generally always be faster than a join and not have limitations.&lt;/P&gt;&lt;P&gt;The 'values(*) as *' can be tailored to carry forward whatever fields you want in the resultant rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 22:27:59 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-03-13T22:27:59Z</dc:date>
    <item>
      <title>Why are there empty fields after a left join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634330#M220356</link>
      <description>&lt;P&gt;Hello fellows!&lt;BR /&gt;&lt;BR /&gt;I have a sourcetype called cmdb with a field called BIA to any src_host.&lt;/P&gt;
&lt;P&gt;After this join&lt;/P&gt;
&lt;P&gt;index=lab sourcetype=A | join type=left src_host [search index=lab sourcetype=cmdb]&lt;/P&gt;
&lt;P&gt;Most of the src_host now figures with the BIA field, but some of them don't. It's OK, because they do not exist on cmdb sourcetype.&lt;/P&gt;
&lt;P&gt;I want to fix the value of the BIA field for this hosts.&lt;/P&gt;
&lt;P&gt;I try to use&amp;nbsp;a lot of tings like...&lt;BR /&gt;​| eval BIA = if( len(BIA)==0, "FIX", BIA)&lt;BR /&gt;but is not running fine.&lt;/P&gt;
&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 16:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634330#M220356</guid>
      <dc:creator>pierre_weg</dc:creator>
      <dc:date>2023-03-15T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: empty fields after a left join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634333#M220358</link>
      <description>&lt;P&gt;You can't use the eval test as BIA is a null field in those events, so use fillnull instead&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;​| fillnull BIA value="FIX"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 22:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634333#M220358</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-13T22:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: empty fields after a left join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634334#M220359</link>
      <description>&lt;P&gt;Using join is not generally a good idea in Splunk as it has limitations which may silently affect your data.&lt;/P&gt;&lt;P&gt;join functionality is generally achieved in Splunk using this construct&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=lab (sourcetype=A OR sourcetype=cmdb)
| stats values(*) as * by src_host&lt;/LI-CODE&gt;&lt;P&gt;This will generally always be faster than a join and not have limitations.&lt;/P&gt;&lt;P&gt;The 'values(*) as *' can be tailored to carry forward whatever fields you want in the resultant rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 22:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634334#M220359</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-13T22:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: empty fields after a left join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634380#M220379</link>
      <description>&lt;P&gt;Great! Great! Great!&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/634380#M220379</guid>
      <dc:creator>pierre_weg</dc:creator>
      <dc:date>2023-03-14T10:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are there empty fields after a left join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/635732#M220873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I found an issue...&lt;BR /&gt;In&amp;nbsp;sourcetype=cmdb the all events have the field BIA with "H", "M" ou "L" values.&lt;BR /&gt;After the join, and using "fillnull", if I use "fillnull BIA value="E"", 100% of the events have one of the 4 values, but if I use "fillnull BIA value="H"" 100% of the events will have "H" value.&lt;BR /&gt;&lt;BR /&gt;what I'ḿ doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/635732#M220873</guid>
      <dc:creator>pierre_weg</dc:creator>
      <dc:date>2023-03-23T14:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why are there empty fields after a left join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/635809#M220894</link>
      <description>&lt;P&gt;Can you post your full search&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 02:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/635809#M220894</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-24T02:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why are there empty fields after a left join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/635899#M220917</link>
      <description>&lt;P&gt;I found the mistake...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It was a syntax error&lt;/P&gt;&lt;P&gt;The right way is&lt;/P&gt;&lt;P&gt;| fillnull value="FIX" BIA&lt;/P&gt;&lt;P&gt;not&lt;/P&gt;&lt;P&gt;| fillnull BIA value="FIX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 11:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-there-empty-fields-after-a-left-join/m-p/635899#M220917</guid>
      <dc:creator>pierre_weg</dc:creator>
      <dc:date>2023-03-24T11:07:15Z</dc:date>
    </item>
  </channel>
</rss>

