<?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: left join not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540991#M153134</link>
    <description>&lt;P&gt;I would probably start like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="almost_a_hero_analytics"
| bin span=1d _time
| eval first_login=if(EventName="player_created", _time, null)
| eventstats values(first_login) as first_login by EntityId
| stats values(first_login) as first_login by _time EntityId
| eval datediff=max(round((_time-first_login)/86400,0),0)
| fieldformat first_login=strftime(first_login, "%Y-%m-%d")
| table _time EntityId first_login datediff&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 23 Feb 2021 10:51:19 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-02-23T10:51:19Z</dc:date>
    <item>
      <title>left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540867#M153077</link>
      <description>&lt;P&gt;hi Splunk community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow my left join is not working if I select all EntityIDs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zarrukh2010_2-1614011218252.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13009i38A523682FA19065/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zarrukh2010_2-1614011218252.png" alt="zarrukh2010_2-1614011218252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Althought when I select a single IdentityId, it is working...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zarrukh2010_1-1614004486837.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13008iBAF9454092F095FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zarrukh2010_1-1614004486837.png" alt="zarrukh2010_1-1614004486837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints on why the first one is not working and how I can fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zarrukh&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540867#M153077</guid>
      <dc:creator>zarrukh2010</dc:creator>
      <dc:date>2021-02-22T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540873#M153080</link>
      <description>&lt;P&gt;Have you considered using stats instead of join to avoid limits (you have half a million entity ids!)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 17:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540873#M153080</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-22T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540985#M153130</link>
      <description>&lt;P&gt;how I can use that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 10:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540985#M153130</guid>
      <dc:creator>zarrukh2010</dc:creator>
      <dc:date>2021-02-23T10:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540991#M153134</link>
      <description>&lt;P&gt;I would probably start like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="almost_a_hero_analytics"
| bin span=1d _time
| eval first_login=if(EventName="player_created", _time, null)
| eventstats values(first_login) as first_login by EntityId
| stats values(first_login) as first_login by _time EntityId
| eval datediff=max(round((_time-first_login)/86400,0),0)
| fieldformat first_login=strftime(first_login, "%Y-%m-%d")
| table _time EntityId first_login datediff&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Feb 2021 10:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540991#M153134</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-23T10:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540999#M153139</link>
      <description>&lt;P&gt;no, it will not work as it will take only people who created accounts for the selected time, but I need the list of accounts created for the whole time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 11:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/540999#M153139</guid>
      <dc:creator>zarrukh2010</dc:creator>
      <dc:date>2021-02-23T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541007#M153143</link>
      <description>&lt;P&gt;Good point - you could create a summary index which collects player creation dates, then use a map command to search this index for the player creation date - you would need to set the maxsearches so that it covers the number of players in your time period. You don't have to use a summary index, it is just that it might be quicker.&amp;nbsp; If you are doing this in a dashboard, you might be able to have an initial search (either of your whole data set or the summary index) which gets all the players creation dates, and load the results from this in the map search.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541007#M153143</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-23T13:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541013#M153145</link>
      <description>&lt;P&gt;Since you have 500k events, JOIN command doesn't work as it is limited to 50k events. Try the following:&lt;/P&gt;&lt;P&gt;1. Write the data from the first search before JOIN command in your query to a lookup file (data_lookup_1.csv),&lt;/P&gt;&lt;P&gt;2. Write the data from the sub search to another lookup file (data_lookup_2.csv),&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Your final query:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;| inputlookup&amp;nbsp;data_lookup_1.csv&lt;BR /&gt;| lookup&amp;nbsp;&amp;nbsp;data_lookup_2.csv &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EntityId&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Try it and let me know if it works.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541013#M153145</guid>
      <dc:creator>sandeepganti</dc:creator>
      <dc:date>2021-02-23T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541112#M153180</link>
      <description>&lt;P&gt;Thanks, that is what I was thinking about. 2 questions&lt;/P&gt;&lt;P&gt;1. How I can create and write the results into that csv file?&lt;/P&gt;&lt;P&gt;2. How I can setup automatic update of that csv file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 05:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541112#M153180</guid>
      <dc:creator>zarrukh2010</dc:creator>
      <dc:date>2021-02-24T05:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: left join not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541969#M153492</link>
      <description>&lt;P&gt;1. How I can create and write the results into that csv file?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use a saved search and run it for a day's data (Example: yesterday) and then write it to a lookup (preferably kvstore lookup).&lt;/LI&gt;&lt;LI&gt;Since you have two searches write the output to 2 lookups.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2. How I can setup automatic update of that csv file?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Schedule your first saved search to run it and update to lookup daily at 6am,&lt;/LI&gt;&lt;LI&gt;Schedule your second search to run and update lookup at 6:30am&lt;/LI&gt;&lt;LI&gt;Your final search query (shown below) which is matching the events from the two lookups should run at 7:00am and write it to a third lookup which will be your final lookup with matching events.&lt;BR /&gt;|inputlookup firstlookup&lt;BR /&gt;|lookup secondlookup fieldname&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 02 Mar 2021 13:57:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/left-join-not-working/m-p/541969#M153492</guid>
      <dc:creator>sandeepganti</dc:creator>
      <dc:date>2021-03-02T13:57:12Z</dc:date>
    </item>
  </channel>
</rss>

