<?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 how to join 2 different searches in a single index with different fileds and mapping them to the common field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-join-2-different-searches-in-a-single-index-with/m-p/81372#M20614</link>
    <description>&lt;P&gt;I have a new problem now when i try to filter the search with a fieldname value and both the search has different name.&lt;/P&gt;

&lt;P&gt;Query-1 has the field name as "SessionType" and Query-2 has the field name as "Product" and i am trying to filter the search by having Product="meeting" and i am not getting the complete result set.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;When i try and query as given below, i see the expected result :&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;sourcetype="broker" host="g2m*" (createUpdateAttendeeResource OR Participant_System_Information) | rename OSType as OS | eval OS = if(OS=="" or isnull(OS),ClientName,OS) | rename Product as Producttype | eval ProductType = if(ProductType=="" or isnull(ProductType),Sessiontype,ProductType) | top limit=4 OS&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OS  count   percent
Windows 16530   86.580767
MacOSX  2250    11.785041
iOS 234 1.225644
android 78  0.408548
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when i use the filter - "SessionType="meeting" i just get only one result set :&lt;/P&gt;

&lt;P&gt;sourcetype="broker" host="g2m*" (createUpdateAttendeeResource OR Participant_System_Information) | rename OSType as OS | eval OS = if(OS=="" or isnull(OS),ClientName,OS) | rename Product as Producttype | eval ProductType = if(ProductType=="" or isnull(ProductType),Sessiontype,ProductType) | search SessionType="meeting" | top limit=4 OS&lt;/P&gt;

&lt;P&gt;OS  count   percent&lt;BR /&gt;
Windows 11677   86.656772&lt;BR /&gt;
2MacOSX 1615    11.985158&lt;BR /&gt;
iOS 183 1.358071&lt;/P&gt;

&lt;P&gt;I am not sure why the second query result set is not give - where i need the count for "android" as i got from the step-1. &lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:58:30 GMT</pubDate>
    <dc:creator>balavenkatachal</dc:creator>
    <dc:date>2020-09-28T11:58:30Z</dc:date>
    <item>
      <title>how to join 2 different searches in a single index with different fileds and mapping them to the common field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-join-2-different-searches-in-a-single-index-with/m-p/81372#M20614</link>
      <description>&lt;P&gt;I have a new problem now when i try to filter the search with a fieldname value and both the search has different name.&lt;/P&gt;

&lt;P&gt;Query-1 has the field name as "SessionType" and Query-2 has the field name as "Product" and i am trying to filter the search by having Product="meeting" and i am not getting the complete result set.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;When i try and query as given below, i see the expected result :&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;sourcetype="broker" host="g2m*" (createUpdateAttendeeResource OR Participant_System_Information) | rename OSType as OS | eval OS = if(OS=="" or isnull(OS),ClientName,OS) | rename Product as Producttype | eval ProductType = if(ProductType=="" or isnull(ProductType),Sessiontype,ProductType) | top limit=4 OS&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OS  count   percent
Windows 16530   86.580767
MacOSX  2250    11.785041
iOS 234 1.225644
android 78  0.408548
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when i use the filter - "SessionType="meeting" i just get only one result set :&lt;/P&gt;

&lt;P&gt;sourcetype="broker" host="g2m*" (createUpdateAttendeeResource OR Participant_System_Information) | rename OSType as OS | eval OS = if(OS=="" or isnull(OS),ClientName,OS) | rename Product as Producttype | eval ProductType = if(ProductType=="" or isnull(ProductType),Sessiontype,ProductType) | search SessionType="meeting" | top limit=4 OS&lt;/P&gt;

&lt;P&gt;OS  count   percent&lt;BR /&gt;
Windows 11677   86.656772&lt;BR /&gt;
2MacOSX 1615    11.985158&lt;BR /&gt;
iOS 183 1.358071&lt;/P&gt;

&lt;P&gt;I am not sure why the second query result set is not give - where i need the count for "android" as i got from the step-1. &lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-join-2-different-searches-in-a-single-index-with/m-p/81372#M20614</guid>
      <dc:creator>balavenkatachal</dc:creator>
      <dc:date>2020-09-28T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to join 2 different searches in a single index with different fileds and mapping them to the common field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-join-2-different-searches-in-a-single-index-with/m-p/81373#M20615</link>
      <description>&lt;P&gt;Opps ! typo on the query, &lt;BR /&gt;
i got the answer for this as i misspelled the fieldname  as "Producttype " instead of "ProductType" ( 'T' in uppercase) and i could see the result now :&lt;/P&gt;

&lt;P&gt;sourcetype="broker" host="g2m*" (createUpdateAttendeeResource OR Participant_System_Information) | rename OSType as OS | eval OS = if(OS=="" or isnull(OS),ClientName,OS) | rename Product as ProductType | eval ProductType = if(ProductType="" or isnull(ProductType),SessionType,ProductType) | search ProductType="meeting" | top OS&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:58:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-join-2-different-searches-in-a-single-index-with/m-p/81373#M20615</guid>
      <dc:creator>balavenkatachal</dc:creator>
      <dc:date>2020-09-28T11:58:32Z</dc:date>
    </item>
  </channel>
</rss>

