<?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: How to join 2 search in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532781#M9590</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;&amp;nbsp;user_nm is correct common field between 2 search, also yes in output of second search&amp;nbsp;USER_NM and USER_ID are in same row&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2020 12:01:48 GMT</pubDate>
    <dc:creator>supriyagaw08</dc:creator>
    <dc:date>2020-12-11T12:01:48Z</dc:date>
    <item>
      <title>How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532773#M9586</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I want to join 2 search based upon one common filed from both the search ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=14 search_name="Daily Counts" |rename A_USER_NM as USER_NM|table Date USER_NM FILE_ID FILE_NM filecount| join USER_NM&lt;BR /&gt;[ search index=14 earliest=-24h@h latest=now sourcetype=user source=O&amp;nbsp; 001&lt;BR /&gt;| dedup USER_NM&lt;BR /&gt;| table USER_NM USER_ID indicator ]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried above search its working but its not displaying all results, few records are getting missed, let me know where am I making mistake or any other method that i can use.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 11:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532773#M9586</guid>
      <dc:creator>supriyagaw08</dc:creator>
      <dc:date>2020-12-11T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532776#M9587</link>
      <description>&lt;P&gt;A direct answer to the question using join:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=14 search_name="Daily Counts" 
|rename A_USER_NM as USER_NM
|table Date USER_NM FILE_ID FILE_NM filecount
| join type=left max=0 USER_NM
[ search index=14 earliest=-24h@h latest=now sourcetype=user source=O  001
| dedup USER_NM
| table USER_NM USER_ID indicator ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unclear if&amp;nbsp; the dedup in the subsearch is necessary if you are missing results?&lt;/P&gt;&lt;P&gt;However, there are normally better/more efficient ways of obtaining the same results with stats, but it might help to see some sample data to provide you with a stats example&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 11:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532776#M9587</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-11T11:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532777#M9588</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;&amp;nbsp; thanks for the reply but i used this and its showing the fileds&amp;nbsp;USER_ID indicator as blanks even i remove dedup.&lt;/P&gt;&lt;P&gt;The output from my search 1 is&amp;nbsp;Date| A_USER_NM| FILE_ID FILE_NM |filecount and output 2 has many fields from which i want only&amp;nbsp;USER_ID and indicator. Both search has common index but different search reports&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 11:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532777#M9588</guid>
      <dc:creator>supriyagaw08</dc:creator>
      <dc:date>2020-12-11T11:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532779#M9589</link>
      <description>&lt;P&gt;That would suggest the second search is not finding any matches.&amp;nbsp; Are you sure that USER_NM is the correct field to match on (does it also need renaming perhaps?)&lt;/P&gt;&lt;P&gt;If you just run your second search, do you see results for USER_NM and USER_ID in the same rows?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 11:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532779#M9589</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-11T11:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532781#M9590</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;&amp;nbsp;user_nm is correct common field between 2 search, also yes in output of second search&amp;nbsp;USER_NM and USER_ID are in same row&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 12:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532781#M9590</guid>
      <dc:creator>supriyagaw08</dc:creator>
      <dc:date>2020-12-11T12:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532783#M9591</link>
      <description>&lt;P&gt;Just because you wrote "user_nm" (and this may be a silly question) do both search results have the field USER_NM in upper case? Fieldnames (in the join) would be case sensitive.&lt;/P&gt;&lt;P&gt;From what you are saying, it sounds like the search should work. Are you able to provide a screenshot (with redactions etc) of all the searches?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 12:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/532783#M9591</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-11T12:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to join 2 search</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/533108#M9592</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;&amp;nbsp;thanks for your help the issue was with search 2 it was not giving complete search I was looking for , fixed that and issue was resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 08:37:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-join-2-search/m-p/533108#M9592</guid>
      <dc:creator>supriyagaw08</dc:creator>
      <dc:date>2020-12-15T08:37:31Z</dc:date>
    </item>
  </channel>
</rss>

