<?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 with search from 2 sources in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/632128#M219572</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/52268"&gt;@garrywilmeth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below search without join.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=AAD_MSGraph_UserData OR sourcetype=AD_UserData 
| eval sid=coalesce(AAD_OnPremSID,AD_SID) 
| stats values(AAD_*) as * values(AD_LastLogon) as AD_LastLogon by AAD_OnPremSID 
| table AAD_OnPremSID AAD_Email AAD_UserType AAD_LastPWChange AAD_LastSignInDateTime AAD_LastNonInteractiveSignInDateTime AD_LastLogon&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 04:07:11 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2023-02-24T04:07:11Z</dc:date>
    <item>
      <title>How to join with search from 2 sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/632125#M219570</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to figure out how to use join to table the results from 2 searches.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;sourcetype=AAD_MSGraph_UserData&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;AAD_OnPremSID&lt;/EM&gt;&lt;BR /&gt;AAD_Email&lt;BR /&gt;AAD_UserType&lt;BR /&gt;AAD_LastSignInDateTime&lt;BR /&gt;AAD_LastNonInteractiveSignInDateTime&lt;BR /&gt;AAD_LastPWChange&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;sourcetype=AD_UserData&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;AD_SID&lt;/EM&gt;&lt;BR /&gt;AD_UserPrincipalName&lt;BR /&gt;&lt;STRONG&gt;AD_LastLogon&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JOIN ON: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;AAD_OnPremSID AND AD_SID&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;TABLE RESULTS:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;AAD_OnPremSID, AAD_Email, AAD_UserType, AAD_LastPWChange,&amp;nbsp;AAD_LastSignInDateTime, AAD_LastNonInteractiveSignInDateTime,&amp;nbsp;&lt;STRONG&gt;AD_LastLogon&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Garry&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/632125#M219570</guid>
      <dc:creator>garrywilmeth</dc:creator>
      <dc:date>2023-02-24T04:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN with search from 2 sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/632128#M219572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/52268"&gt;@garrywilmeth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below search without join.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=AAD_MSGraph_UserData OR sourcetype=AD_UserData 
| eval sid=coalesce(AAD_OnPremSID,AD_SID) 
| stats values(AAD_*) as * values(AD_LastLogon) as AD_LastLogon by AAD_OnPremSID 
| table AAD_OnPremSID AAD_Email AAD_UserType AAD_LastPWChange AAD_LastSignInDateTime AAD_LastNonInteractiveSignInDateTime AD_LastLogon&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/632128#M219572</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T04:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN with search from 2 sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/634629#M220478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I just got a chance to give this a try.&amp;nbsp; It populated the SID in the table, but no other data for any of the other columns.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Garry&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 18:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-with-search-from-2-sources/m-p/634629#M220478</guid>
      <dc:creator>garrywilmeth</dc:creator>
      <dc:date>2023-03-15T18:14:27Z</dc:date>
    </item>
  </channel>
</rss>

