<?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 is required regarding Splunk joining in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386062#M172134</link>
    <description>&lt;P&gt;@sg86sourav &lt;/P&gt;

&lt;P&gt;I think you are getting a single event for each account. Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= duration&amp;gt;3000 
| dedup txnId 
| table txnId,accountNumber,duration 
| join accountNumber type=inner max=0
    [ search index= 
    | table accountNumber,market]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have added &lt;CODE&gt;max=0&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/SearchReference/Join"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2019 08:27:38 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-04-01T08:27:38Z</dc:date>
    <item>
      <title>Help is required regarding Splunk joining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386061#M172133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am facing some issue with Splunk query while using joining. Our requirement is find out the high response time API call [more than 3000 ms] and their corresponding region name and to achieve this I need to join two query and I am not getting both the information from a single query.&lt;/P&gt;

&lt;P&gt;First I search for transactions having more than 3000 ms response time using below query and found around 6600 transactions-&lt;/P&gt;

&lt;P&gt;index=*  duration&amp;gt;3000 | dedup txnId&lt;/P&gt;

&lt;P&gt;And then executed below query with joining to fetch region details-&lt;/P&gt;

&lt;P&gt;index=*  duration&amp;gt;3000 | dedup txnId|table txnId,accountNumber,duration | join accountNumber type=inner [search index=*  | table accountNumber,market]&lt;/P&gt;

&lt;P&gt;The problem is that after joining it is returning only 452 row, not the 6600 observed in the first query.&lt;/P&gt;

&lt;P&gt;So please could you please help me to resolve this issue, is there any mistake I have done ?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 07:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386061#M172133</guid>
      <dc:creator>sg86sourav</dc:creator>
      <dc:date>2019-04-01T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help is required regarding Splunk joining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386062#M172134</link>
      <description>&lt;P&gt;@sg86sourav &lt;/P&gt;

&lt;P&gt;I think you are getting a single event for each account. Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= duration&amp;gt;3000 
| dedup txnId 
| table txnId,accountNumber,duration 
| join accountNumber type=inner max=0
    [ search index= 
    | table accountNumber,market]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have added &lt;CODE&gt;max=0&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/SearchReference/Join"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386062#M172134</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-01T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help is required regarding Splunk joining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386063#M172135</link>
      <description>&lt;P&gt;Hi Kamlesh, I have tried with max=0 parameter as well, but observing same result.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386063#M172135</guid>
      <dc:creator>sg86sourav</dc:creator>
      <dc:date>2019-04-01T08:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help is required regarding Splunk joining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386064#M172136</link>
      <description>&lt;P&gt;@sg86sourav&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index= duration&amp;gt;3000 
 | dedup txnId 
 | table txnId,accountNumber,duration 
 | join accountNumber type=inner max=0
     [ search index=  | dedup accountNumber
     | table accountNumber,market]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And &lt;/P&gt;

&lt;P&gt;Can you please share sample output from both searches. only 5 or 10 events from both searches. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386064#M172136</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-01T08:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help is required regarding Splunk joining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386065#M172137</link>
      <description>&lt;P&gt;Hi Kamlesh, getting the same result after running the latest query you shared.&lt;/P&gt;

&lt;P&gt;Regarding sample output, I don't have access to copy data from remote machine to local.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 11:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386065#M172137</guid>
      <dc:creator>sg86sourav</dc:creator>
      <dc:date>2019-04-01T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help is required regarding Splunk joining</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386066#M172138</link>
      <description>&lt;P&gt;@sg86sourav&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= duration&amp;gt;3000 
  | dedup txnId 
  | table txnId,accountNumber,duration 
  | join accountNumber type=left max=0
      [ search index=  | dedup accountNumber
      | table accountNumber,market]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I just want to know that do we have any accountNumber in results which are not available in the second search.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 12:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-is-required-regarding-Splunk-joining/m-p/386066#M172138</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-01T12:21:08Z</dc:date>
    </item>
  </channel>
</rss>

