<?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: Subsearch join not Working (string size) in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508127#M2498</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;join&lt;/FONT&gt; command is matching on the userId field so neither&amp;nbsp;&lt;SPAN&gt;drm_license&amp;nbsp;nor&amp;nbsp;drm_user_return are considered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With an inner join, events in the subsearch that do not match events in the outer search are discarded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this alternative search that does not use &lt;FONT face="courier new,courier"&gt;join&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index = ott sourcetype = drm_license) OR (index = ott index = ott sourcetype = drm_user_return)
| stats values(*) as * by userId&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 08 Jul 2020 15:11:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-07-08T15:11:06Z</dc:date>
    <item>
      <title>Subsearch join not Working (string size)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508107#M2489</link>
      <description>&lt;P&gt;Hi guys&lt;BR /&gt;I ask for help for that.&lt;BR /&gt;I tried to search according to the query below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index = ott sourcetype = drm_license&lt;BR /&gt;| junction type = internal userId [index = ott&amp;nbsp; sourcetype = drm_user_return]&lt;/P&gt;&lt;P&gt;The userId field has 128 characters (numbers and letters).&lt;BR /&gt;I know that the sub-survey is heavy and will hurt performance, but this survey will be run once a month, so the performance will not be impacting for me.&lt;/P&gt;&lt;P&gt;The search does not match all (drm_license and drm_user-return) even if the fields have equal values.&lt;/P&gt;&lt;P&gt;Example: 1000 events match 600, even though the fields of the other 400 have equal values.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508107#M2489</guid>
      <dc:creator>Michell_ctba</dc:creator>
      <dc:date>2020-07-08T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch join not Working (string size)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508127#M2498</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;join&lt;/FONT&gt; command is matching on the userId field so neither&amp;nbsp;&lt;SPAN&gt;drm_license&amp;nbsp;nor&amp;nbsp;drm_user_return are considered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With an inner join, events in the subsearch that do not match events in the outer search are discarded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this alternative search that does not use &lt;FONT face="courier new,courier"&gt;join&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index = ott sourcetype = drm_license) OR (index = ott index = ott sourcetype = drm_user_return)
| stats values(*) as * by userId&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508127#M2498</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-08T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch join not Working (string size)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508799#M2571</link>
      <description>&lt;P&gt;Thanks a lot for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this research did not bring me the expected result.&lt;/P&gt;&lt;P&gt;The scenario looks like this:&lt;/P&gt;&lt;P&gt;I have a "sourcetype" with approximately 1 million users, each user has a field identified as &lt;STRONG&gt;"userhashid".(index = drm sourcetype = drm_user_return)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have another "sourcetype" with all the licenses generated on the daily platform and each event exists in a field with name &lt;STRONG&gt;"userid".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(index = ott sourcetype = drm_license)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This field is the same as the "userhashid" field of the sourcetype "drm_user_return"&lt;/P&gt;&lt;P&gt;Need something like a join (compare the userid with the hashuserid) so that you can use other fields from the sourcetype "drm_user_return"&lt;BR /&gt;&lt;BR /&gt;To remember.&lt;/P&gt;&lt;P&gt;With the join function, many events with equal fields are not matching. I wonder if there is any alternative to join for this case.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 12:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508799#M2571</guid>
      <dc:creator>Michell_ctba</dc:creator>
      <dc:date>2020-07-13T12:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch join not Working (string size)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508805#M2572</link>
      <description>&lt;P&gt;Yes, there is an alternative to join, which I provided in my reply.&amp;nbsp; Here it is again, updated based on your comments.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index = ott sourcetype = drm_license) OR (index = drm sourcetype = drm_user_return)
| eval userID = coalesce(userid, userhashid)
| stats values(*) as * by userId&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Jul 2020 12:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508805#M2572</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-13T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch join not Working (string size)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508808#M2573</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When doing this search, it will be necessary that in the generated table it appears two fields of the sourcetype "drm_user_return".&lt;BR /&gt;The fields are:&lt;/P&gt;&lt;P&gt;"retailerUserId" and "ProfileUserId"&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 12:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508808#M2573</guid>
      <dc:creator>Michell_ctba</dc:creator>
      <dc:date>2020-07-13T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch join not Working (string size)</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508817#M2574</link>
      <description>The above query should return all available fields. Use the table command to specify the fields you want displayed and the order in which to display them.</description>
      <pubDate>Mon, 13 Jul 2020 13:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Subsearch-join-not-Working-string-size/m-p/508817#M2574</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-13T13:36:46Z</dc:date>
    </item>
  </channel>
</rss>

