<?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 do I get results of all values in 2 subqueries? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418485#M120328</link>
    <description>&lt;P&gt;i have 2 of the same subqueries in my search with different time periods. So, both results are different. &lt;/P&gt;

&lt;P&gt;If I use "&lt;STRONG&gt;appendcols&lt;/STRONG&gt;" ,  the results shown are incorrect. The values jump to fillfull some empty fields in between. &lt;/P&gt;

&lt;P&gt;If I use "&lt;STRONG&gt;join&lt;/STRONG&gt;",  it's like self join or inner join. it gives results that are in common in both queries.  &lt;/P&gt;

&lt;P&gt;if i use "&lt;STRONG&gt;join type=left&lt;/STRONG&gt;", i am not getting the results from query 2 that are not there in query 1, as it considers query 1 to be primary . &lt;/P&gt;

&lt;P&gt;I want all the results of subquery1 and subquery2 even if they are not there in any one of the subqueries (like union).&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2019 18:11:22 GMT</pubDate>
    <dc:creator>Anantha123</dc:creator>
    <dc:date>2019-01-18T18:11:22Z</dc:date>
    <item>
      <title>How do I get results of all values in 2 subqueries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418485#M120328</link>
      <description>&lt;P&gt;i have 2 of the same subqueries in my search with different time periods. So, both results are different. &lt;/P&gt;

&lt;P&gt;If I use "&lt;STRONG&gt;appendcols&lt;/STRONG&gt;" ,  the results shown are incorrect. The values jump to fillfull some empty fields in between. &lt;/P&gt;

&lt;P&gt;If I use "&lt;STRONG&gt;join&lt;/STRONG&gt;",  it's like self join or inner join. it gives results that are in common in both queries.  &lt;/P&gt;

&lt;P&gt;if i use "&lt;STRONG&gt;join type=left&lt;/STRONG&gt;", i am not getting the results from query 2 that are not there in query 1, as it considers query 1 to be primary . &lt;/P&gt;

&lt;P&gt;I want all the results of subquery1 and subquery2 even if they are not there in any one of the subqueries (like union).&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 18:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418485#M120328</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-01-18T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get results of all values in 2 subqueries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418486#M120329</link>
      <description>&lt;P&gt;Hi @Anantha123&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;firstquery|append[| second query]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jan 2019 18:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418486#M120329</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-18T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get results of all values in 2 subqueries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418487#M120330</link>
      <description>&lt;P&gt;append wont help me as i want the results of both queries combined . I will get below result if I use append.&lt;/P&gt;

&lt;P&gt;Result of 1st Query &lt;/P&gt;

&lt;P&gt;Operation1  Failure1&lt;BR /&gt;
Operation2  Failure2&lt;BR /&gt;
Operation3  Failure3&lt;/P&gt;

&lt;P&gt;Results of 2nd Query&lt;BR /&gt;
Operation1  Total1&lt;BR /&gt;
Operation2  Total2&lt;BR /&gt;
Operation4  Total4&lt;/P&gt;

&lt;P&gt;If I use append , I will get result as below &lt;BR /&gt;
Operation1  Failure1      0&lt;BR /&gt;
Operation2  Failure2      0 &lt;BR /&gt;
Operation3  Failure3      0&lt;BR /&gt;
Operation1     0              Total1&lt;BR /&gt;
Operation2     0              Total2&lt;BR /&gt;
Operation4     0              Total4&lt;/P&gt;

&lt;P&gt;I want output as &lt;BR /&gt;
Operation1  Failure1    Total1&lt;BR /&gt;
Operation2  Failure2    Total2&lt;BR /&gt;
Operation3  Failure3         0&lt;BR /&gt;&lt;BR /&gt;
Operation4         0        Total4&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 17:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-results-of-all-values-in-2-subqueries/m-p/418487#M120330</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-01-21T17:18:27Z</dc:date>
    </item>
  </channel>
</rss>

