<?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 Splunk Left join not working in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512235#M9142</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I have a query like below. Can i use something else than join&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=hello sourcetype="logs A" source="C:\\football\ab*"&amp;nbsp; OR source="C:\\Tennis\cd*" OR&amp;nbsp;source="C:\\Cricket\eb*"&amp;nbsp;&lt;BR /&gt;| rex (something)&lt;BR /&gt;|eval (something)&lt;BR /&gt;| join type=left&lt;BR /&gt;[search sourcetype = "logs B"&amp;nbsp;source="C:\\football\ab*"&amp;nbsp; OR source="C:\\Tennis\cd*" OR&amp;nbsp;source="C:\\Cricket\eb*"&amp;nbsp;&lt;BR /&gt;|rex (something)&lt;BR /&gt;|eval (somthing)]&lt;BR /&gt;table&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 23:06:52 GMT</pubDate>
    <dc:creator>angadbagga</dc:creator>
    <dc:date>2020-08-03T23:06:52Z</dc:date>
    <item>
      <title>Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512235#M9142</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I have a query like below. Can i use something else than join&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=hello sourcetype="logs A" source="C:\\football\ab*"&amp;nbsp; OR source="C:\\Tennis\cd*" OR&amp;nbsp;source="C:\\Cricket\eb*"&amp;nbsp;&lt;BR /&gt;| rex (something)&lt;BR /&gt;|eval (something)&lt;BR /&gt;| join type=left&lt;BR /&gt;[search sourcetype = "logs B"&amp;nbsp;source="C:\\football\ab*"&amp;nbsp; OR source="C:\\Tennis\cd*" OR&amp;nbsp;source="C:\\Cricket\eb*"&amp;nbsp;&lt;BR /&gt;|rex (something)&lt;BR /&gt;|eval (somthing)]&lt;BR /&gt;table&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 23:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512235#M9142</guid>
      <dc:creator>angadbagga</dc:creator>
      <dc:date>2020-08-03T23:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512236#M9143</link>
      <description>&lt;P&gt;I want different _time values for both the source types "logsA" and "logsB" in the tabe&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 23:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512236#M9143</guid>
      <dc:creator>angadbagga</dc:creator>
      <dc:date>2020-08-03T23:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512237#M9144</link>
      <description>&lt;P&gt;Hi angadbagga&lt;/P&gt;&lt;P&gt;Can you share more details? What's the format/fields of you data? What's the expected output? Have you tried to state field you want to join?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 00:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512237#M9144</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2020-08-04T00:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512241#M9145</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Yes, i tried to state the field i wanted to join.&amp;nbsp; I am writing this query with dummy fields.&amp;nbsp; In short there are two source types and i want CompletionTime_Dep and CompletionTime_CD in the final table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index=abc sourcetype="xyz" "efp" source="hello1" OR source="hello2*" OR source="hello3*"&lt;BR /&gt;| rex field=source (?&amp;lt;Tweet&amp;gt;"\b\w{2}\b")&lt;BR /&gt;| eval Steel = case(Tweet == "EV", "Steel1", Tweet == "SV", "Steel2")&lt;BR /&gt;| table Tweet Steel _time&lt;BR /&gt;| rename _time as CompletionTime_Dep&lt;BR /&gt;| convert ctime(CompletionTime_Dep)&lt;BR /&gt;| join Steel type=left&lt;BR /&gt;[ search sourcetype="ufh" "stn" source="hello1" OR source="hello2*" OR source="hello3*"&lt;BR /&gt;rex field=source (?&amp;lt;Tweet&amp;gt;"\b\w{2}\b")&lt;BR /&gt;| eval Steel = case(Tweet == "EV", "Steel1", Tweet == "SV", "Steel2")&lt;BR /&gt;| table Tweet Steel _time&lt;BR /&gt;| rename _time as CompletionTime_CD&lt;BR /&gt;| convert ctime(CompletionTime_CD)]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 00:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512241#M9145</guid>
      <dc:creator>angadbagga</dc:creator>
      <dc:date>2020-08-04T00:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512250#M9146</link>
      <description>&lt;P&gt;If both independent searches work and there is a common 'Steel' to join on, then the search looks ok. What is the size of the data set and what results (if any) do you get.&lt;/P&gt;&lt;P&gt;However, to answer your question, yes you can always use something other than join (and probably should)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc ((sourcetype="xyz" "efp") OR (sourcetype="ufh" "stn")) source="hello1" OR source="hello2*" OR source="hello3*"
| rex field=source (?&amp;lt;Tweet&amp;gt;"\b\w{2}\b")
| eval Steel = case(Tweet == "EV", "Steel1", Tweet == "SV", "Steel2")
| table Tweet Steel _time
| eval CompletionTime_Dep=if(sourcetype="xyz", _time, null())
| eval CompletionTime_CD=if(sourcetype="ufh", _time, null())
| convert ctime(CompletionTime_Dep)
| convert ctime(CompletionTime_CD)
| stats values(CompletionTime_*) as CompletionTime_* by Tweet Steel&lt;/LI-CODE&gt;&lt;P&gt;However, in your example, will you have many rows where Steel has the same value (Steel1/Steel2)?&lt;/P&gt;&lt;P&gt;If so, then is the original intention of the join to bring all sub matches from the subsearch to each of the outer rows.&amp;nbsp; If so, then the above 'stats' may not be what you intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 03:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/512250#M9146</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-08-04T03:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/515606#M9147</link>
      <description>&lt;P&gt;I would recommend going with&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp; solution instead of a left join. Left joins in splunk is more problems than its worth.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 00:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/515606#M9147</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2020-08-23T00:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/515609#M9148</link>
      <description>&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 03:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Left-join-not-working/m-p/515609#M9148</guid>
      <dc:creator>angadbagga</dc:creator>
      <dc:date>2020-08-23T03:39:32Z</dc:date>
    </item>
  </channel>
</rss>

