<?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: Help with join query for Salesforce in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702759#M238259</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260347"&gt;@linaaabad&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;&amp;nbsp;solution should give you a good start. Please don't use "join" instead use stats .. by as&amp;nbsp; above.&lt;BR /&gt;&lt;BR /&gt;Refer the below for documentation.&lt;BR /&gt;&lt;A href="https://lantern.splunk.com/Splunk_Platform/Product_Tips/Searching_and_Reporting/Writing_better_queries_in_Splunk_Search_Processing_Language" target="_blank" rel="noopener"&gt;https://lantern.splunk.com/Splunk_Platform/Product_Tips/Searching_and_Reporting/Writing_better_queries_in_Splunk_Search_Processing_Language&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=PLA1528B#/" target="_blank" rel="noopener"&gt;https://conf.splunk.com/watch/conf-online.html?search=PLA1528B#/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2024 02:34:17 GMT</pubDate>
    <dc:creator>sainag_splunk</dc:creator>
    <dc:date>2024-10-25T02:34:17Z</dc:date>
    <item>
      <title>Help with join query for Salesforce</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702715#M238247</link>
      <description>&lt;P&gt;Hello Smarties...&lt;/P&gt;
&lt;P&gt;Can someone offer some assistance; We recently started ingesting Salesforce into Splunk, Username are coming in as ID's (00000149345543qba), instead of Jane Doe. So was told to use the Join to get the Usernames or Names, and add to the sourcetype I need "joined" with;&amp;nbsp; So I am trying to get the "Login As"&amp;nbsp; events which is under the&amp;nbsp;sourcetype="sfdc:setupaudittrail" - how do I get the Login As events with usernames, if usernames are under the user index and the login as events are under the setupaudittrail sourcetype? Here is my attempted search which doesn't come up with anything; But I know the events exist...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=salesforce sourcetype="sfdc:user" 
| join type=outer UserAccountId [search index=salesforce sourcetype="sfdc:setupaudittrail" Action=suOrgAdminLogin]

&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Oct 2024 18:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702715#M238247</guid>
      <dc:creator>linaaabad</dc:creator>
      <dc:date>2024-10-24T18:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join query for Salesforce</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702757#M238258</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;without sample events this can be tricky but since you provided the SPL and you join on&amp;nbsp;UserAccountId I assume this field is available in both sourcetypes.&lt;/P&gt;&lt;P&gt;If this is case, it would be as simple as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=salesforce UserAccountId=* sourcetype="sfdc:user" OR ( sourcetype="sfdc:setupaudittrail" Action=suOrgAdminLogin )
| fields list of fields you want
| stats values(*) AS * by _time UserAccountId&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps ...&lt;/P&gt;&lt;P&gt;cheers, MuS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 23:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702757#M238258</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2024-10-24T23:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join query for Salesforce</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702759#M238259</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260347"&gt;@linaaabad&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;&amp;nbsp;solution should give you a good start. Please don't use "join" instead use stats .. by as&amp;nbsp; above.&lt;BR /&gt;&lt;BR /&gt;Refer the below for documentation.&lt;BR /&gt;&lt;A href="https://lantern.splunk.com/Splunk_Platform/Product_Tips/Searching_and_Reporting/Writing_better_queries_in_Splunk_Search_Processing_Language" target="_blank" rel="noopener"&gt;https://lantern.splunk.com/Splunk_Platform/Product_Tips/Searching_and_Reporting/Writing_better_queries_in_Splunk_Search_Processing_Language&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=PLA1528B#/" target="_blank" rel="noopener"&gt;https://conf.splunk.com/watch/conf-online.html?search=PLA1528B#/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 02:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-join-query-for-Salesforce/m-p/702759#M238259</guid>
      <dc:creator>sainag_splunk</dc:creator>
      <dc:date>2024-10-25T02:34:17Z</dc:date>
    </item>
  </channel>
</rss>

