<?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: Problem using Join function in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753685#M242774</link>
    <description>&lt;P&gt;You mock data doesn't appear to be consistent. For example, REFERENCE_ID = 6 is REGION = NORTHSIDE, yet INPUT_REFERENCE_ID = 6 is LOCATION = WESTSIDE. Please can you clarify and/or supply some consistent mock data?&lt;/P&gt;</description>
    <pubDate>Sat, 27 Sep 2025 06:49:10 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-09-27T06:49:10Z</dc:date>
    <item>
      <title>Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753263#M242709</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm a novice working in fraud prevention; appreciate your help.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;When running the following, I'm getting a failure error and job inspector shows excessive time (106.46) on&amp;nbsp;&lt;SPAN&gt;dispatch.evaluate.join.&amp;nbsp; Can you help identify what needs to change to output chart of Condition_Attrib_17 by Treatment Group.&amp;nbsp; I'm a novice working in fraud prevention; appreciate your help.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;index=TEST sourcetype="TEST:user_activity" application_id=ABC123 policy_id=" UPDATE" "*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;| dedup data.condition_attrib_22&lt;/P&gt;&lt;P&gt;&amp;nbsp;| rename data. condition_attrib_22 AS data.params.policy&lt;/P&gt;&lt;P&gt;&amp;nbsp;| fields data.params.policy&lt;/P&gt;&lt;P&gt;| eval join_key=data.params.policy&lt;/P&gt;&lt;P&gt;| fields join_key, data.treatment_group&lt;/P&gt;&lt;P&gt;| join type=inner join_key&lt;/P&gt;&lt;P&gt;&amp;nbsp;[search index=TEST sourcetype="TEST:user_activity" application_id=ABC123 policy_id="UPDATE" "*"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | stats latest(data.request.condition_attrib_17) as Condition_Attrib_17 by data. request.condition_attrib_22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | rename data.request.condition_attrib_22 as join_key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | fields join_key, Condition_Attrib_17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | chart count by Condition_Attrib_17 by data.treatment_group&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 11:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753263#M242709</guid>
      <dc:creator>JHFRDANALYSIS</dc:creator>
      <dc:date>2025-09-18T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753266#M242710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244403"&gt;@JHFRDANALYSIS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would try and avoid using join unless absolutely necessary, you can get the chart in a single pass with stats, then chart. Also it looks like the chart syntax is wrong; it should be “chart count over X by Y”, not “chart count by X by Y”.&lt;/P&gt;&lt;DIV class=""&gt;Something like this should work:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;index=TEST sourcetype="TEST:user_activity" application_id=ABC123 policy_id=UPDATE 
| stats latest(data.request.condition_attrib_17) as Condition_Attrib_17 latest(data.treatment_group) as treatment_group by data.request.condition_attrib_22 
| where isnotnull(Condition_Attrib_17) AND isnotnull(treatment_group) 
| chart count over Condition_Attrib_17 by treatment_group&lt;/LI-CODE&gt;&lt;P&gt;If your key is data.condition_attrib_22 (not data.request.condition_attrib_22), change the stats “by” field accordingly. Also, if multiple treatment_group values can exist per key and you want one, replace latest(...) with values(...) and then mvexpand treatment_group before charting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 11:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753266#M242710</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-09-18T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753290#M242711</link>
      <description>&lt;P&gt;This was helpful by giving me new techniques.&amp;nbsp; But, it didn't return data and the data is there in the json.&amp;nbsp; One thing I note:&amp;nbsp; The policy_id for Condition_Attrib_17 is UPDATE, but the policy_id for Treatment_Group is SRF.&amp;nbsp; Modified to&amp;nbsp;policy_id IN (UPDATE,SRF) but it still didn't return any data which I can see in the json data.&amp;nbsp; I'm thankful that you voluntarily give thoughts to help me learn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753290#M242711</guid>
      <dc:creator>JHFRDANALYSIS</dc:creator>
      <dc:date>2025-09-18T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753292#M242712</link>
      <description>&lt;P&gt;If possible share sanitised sample events otherwise we will not be able to actually help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 21:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753292#M242712</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2025-09-18T21:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753296#M242714</link>
      <description>&lt;P&gt;Everybody has already told you that you shouldn't use &lt;FONT face="courier new,courier"&gt;join&lt;/FONT&gt; in the first place. &amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;&amp;nbsp;asked you to illustrate your data, which is always the best recommendation. &amp;nbsp;Now that you mention your dateset is in JSON, you really have to share/mock data. &amp;nbsp;Sanitize any sensitive information but make sure to maintain structures that matter.&lt;/P&gt;&lt;P&gt;Also, instead of telling volunteers "error when I run this complex SPL snippet", follow these golden rules; nay, call them the four commandments:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Illustrate data input (in raw text, anonymize as needed), whether they are raw events or output from a search (SPL that volunteers here do not have to look at).&lt;/LI&gt;&lt;LI&gt;Illustrate the desired output from illustrated data.&lt;/LI&gt;&lt;LI&gt;Explain the logic between illustrated data and desired output&amp;nbsp;&lt;EM&gt;without&lt;/EM&gt;&amp;nbsp;SPL.&lt;/LI&gt;&lt;LI&gt;If you also illustrate attempted SPL, illustrate actual output and compare with desired output, explain why they look different&amp;nbsp;&lt;U&gt;to you&lt;/U&gt;&amp;nbsp;if that is not painfully obvious.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 19 Sep 2025 04:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753296#M242714</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-09-19T04:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753684#M242773</link>
      <description>&lt;P&gt;I need to know proper syntax of a Splunk query with appended secondary query to be used for outputting table.&amp;nbsp; The file attached has been sanitized and provides exemplary data table information, the logic we want to use to create an output table and a mockup of the output table that accurately reflects what we would expect to see.&amp;nbsp; I've tried many different search queries without success.&amp;nbsp; Appreciate any assistance you can provide.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 00:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753684#M242773</guid>
      <dc:creator>JHFRDANALYSIS</dc:creator>
      <dc:date>2025-09-27T00:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753685#M242774</link>
      <description>&lt;P&gt;You mock data doesn't appear to be consistent. For example, REFERENCE_ID = 6 is REGION = NORTHSIDE, yet INPUT_REFERENCE_ID = 6 is LOCATION = WESTSIDE. Please can you clarify and/or supply some consistent mock data?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 06:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753685#M242774</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-09-27T06:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Join function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753686#M242775</link>
      <description>&lt;P&gt;Come on. PDF?&lt;/P&gt;&lt;P&gt;1. It's not indexed and searchable so if anyone has similar problem in the future won't be able to find this thread.&lt;/P&gt;&lt;P&gt;2. It's not easy to read and copy/paste from. Especially on mobile devices.&lt;/P&gt;&lt;P&gt;3. Opening untrusted files from the internet isn't many people's idea of fun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 07:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-Join-function/m-p/753686#M242775</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-09-27T07:02:10Z</dc:date>
    </item>
  </channel>
</rss>

