<?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 merge multiple query in single output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297146#M89638</link>
    <description>&lt;P&gt;what is your timechart parameters?&lt;BR /&gt;
You might be just doing a &lt;CODE&gt;| stats count&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but rather do "by"&lt;BR /&gt;
    | stats count by your_product_field&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:28:58 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2020-09-29T13:28:58Z</dc:date>
    <item>
      <title>How to merge multiple query in single output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297145#M89637</link>
      <description>&lt;P&gt;I have 5 query merged in single output. In statistics tab I am getting expected values. But in visualization tab when i am selecting bar chart for this table, first column value is displaying on x-axis as field name as x-axis label which should display as bar chart.&lt;BR /&gt;
I have attached the screenshot. In this bottom table we can see 5 fields but in legend we can see only 4. Carecredit is showing as x-axis label. &lt;/P&gt;

&lt;P&gt;Expected Result: All 5 field count in bar chart.&lt;/P&gt;

&lt;P&gt;Note: I am getting correct result if I am using timechart rather than stats command. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297145#M89637</guid>
      <dc:creator>twh1</dc:creator>
      <dc:date>2017-03-29T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple query in single output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297146#M89638</link>
      <description>&lt;P&gt;what is your timechart parameters?&lt;BR /&gt;
You might be just doing a &lt;CODE&gt;| stats count&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but rather do "by"&lt;BR /&gt;
    | stats count by your_product_field&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297146#M89638</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-29T13:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple query in single output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297147#M89639</link>
      <description>&lt;P&gt;@twh1... this exact scenario has been explained as a use case in Splunk documentation for transpose command. &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transpose"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transpose&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your data is missing first column to show aggregate fields like row 1 is &lt;STRONG&gt;Device&lt;/STRONG&gt; and row 2 is &lt;STRONG&gt;Count&lt;/STRONG&gt;. If possible you should refactor your five queries to get these two aggregate by and aggregate type fields. Otherwise you can just pipe the following and you should be able to pull the Count of various Devices&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transpose column_name="Count"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2017 11:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297147#M89639</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-29T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple query in single output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297148#M89640</link>
      <description>&lt;P&gt;Add this to the end of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval PutXAxisLableTextHere=" "
| table PutXAxisLableTextHere *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2017 19:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297148#M89640</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-29T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple query in single output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297149#M89641</link>
      <description>&lt;P&gt;I tried the below option and got the expected result.&lt;/P&gt;

&lt;P&gt;.....| table _time CareCredit SYPI WKS Orange Samsung&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 05:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297149#M89641</guid>
      <dc:creator>twh1</dc:creator>
      <dc:date>2017-03-30T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple query in single output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297150#M89642</link>
      <description>&lt;P&gt;@twh1... If you required time as one of the fields to be displayed you can actually use &lt;STRONG&gt;timechart&lt;/STRONG&gt; or in stats add &lt;STRONG&gt;by _time&lt;/STRONG&gt; clause. There is no need of an additional pipe with table. Based on your query seemed like you just needed 5 columns.&lt;/P&gt;

&lt;P&gt;Anycase... glad you found your answer.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 19:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-multiple-query-in-single-output/m-p/297150#M89642</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-01T19:51:11Z</dc:date>
    </item>
  </channel>
</rss>

