<?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: Show result of multiple queries as rows of single Table (one query=one row) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193489#M55695</link>
    <description>&lt;P&gt;Yes you may want to play with using .css with sideviewutil's html module. The best bet would be a join statement rather than many other work arounds&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2014 13:56:26 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2014-01-02T13:56:26Z</dc:date>
    <item>
      <title>Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193484#M55690</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a multiple search queries for which I  have created separate panels in Dashboard, each showing the output as follows:&lt;/P&gt;

&lt;P&gt;Query1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;parameter   Value   Comments
  xyz        1223     abc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Query2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; parameter  Value   Comments
  x1y1z1      23      a1b1c1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to see the output in one table(Panel) showing the result as follows:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;parameter     Value      Comments
  xyz         1223         abc
  x1y1z1       23        a1b1c1
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I have tried to merge all the queries and display the output. But I still prefer to run the independent queries, so as for simultaneously indexing.&lt;/P&gt;

&lt;P&gt;Please Help...!!!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 09:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193484#M55690</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2014-01-02T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193485#M55691</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
You will not be able to do it that easily. So in the dashboard you need to have 2 panles in same row okay? First search will give you &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    parameter   Value   Comments
     xyz        1223     abc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second search you need to format and |rename parameter as "",Value as "", Comments as ""&lt;BR /&gt;
And add it in the dashboard. Am not sure about the look and feel but this what can be done in your case as splunk doesn't have any option to remove the column header built-in&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 10:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193485#M55691</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-02T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193486#M55692</link>
      <description>&lt;P&gt;I want to run the queries independently, as running them on joining is taking much time.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 10:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193486#M55692</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2014-01-02T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193487#M55693</link>
      <description>&lt;P&gt;Have updated the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 10:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193487#M55693</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-02T10:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193488#M55694</link>
      <description>&lt;P&gt;Thanks linu,&lt;BR /&gt;
Even I have tried the same, but even after keeping the headers blank, "up/down arrows" are still visible. Plus as the panels are different , there is much spacing between the panels.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 11:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193488#M55694</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2014-01-02T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193489#M55695</link>
      <description>&lt;P&gt;Yes you may want to play with using .css with sideviewutil's html module. The best bet would be a join statement rather than many other work arounds&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 13:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193489#M55695</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-02T13:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193490#M55696</link>
      <description>&lt;P&gt;You don't seem to need to do anything to the data once you have it together, right? So it should be pretty simple.&lt;/P&gt;

&lt;P&gt;Lets say you have &lt;BASE_SEARCH_1&gt; that gives you your first set of results, and &lt;BASE_SEARCH_2&gt; for the second set of results.&lt;/BASE_SEARCH_2&gt;&lt;/BASE_SEARCH_1&gt;&lt;/P&gt;

&lt;P&gt;If you do something like: &lt;/P&gt;

&lt;P&gt;&lt;BASE_SEARCH_1&gt; OR &lt;BASE_SEARCH_2&gt; &lt;/BASE_SEARCH_2&gt;&lt;/BASE_SEARCH_1&gt;&lt;/P&gt;

&lt;P&gt;It will give you a full list of all the events that either match your first set OR match your second set.&lt;/P&gt;

&lt;P&gt;Note that you'll have to surround your &lt;BASE_SEARCH_&gt; with parenthesis, if there are multiple statements in it. Example: (index=myind1 source=*.log) OR index=myind2&lt;/BASE_SEARCH_&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193490#M55696</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2014-01-02T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193491#M55697</link>
      <description>&lt;P&gt;What about &lt;CODE&gt;multisearch&lt;/CODE&gt;? The searches are run separately, and you can easily &lt;CODE&gt;table&lt;/CODE&gt; the combined results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch 
   [search index=a blah=bleh] 
   [search index=b blip=blop 
      | rename param AS Parameter 
      | rename val AS Value 
      | rename comment AS Comments] 
| table Parameter Value Comments
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Indentation only for readability.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multisearch"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multisearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K    &lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193491#M55697</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-01-02T14:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193492#M55698</link>
      <description>&lt;P&gt;Since the column names are same in both the queries, you can simply use |append to concatenate the result of one query to another.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Your query 1 which gives parameter, Value, Comments &amp;gt;
| append [ search &amp;lt;your query 2 which again gives paramter, Value, Comments&amp;gt;]

example
query 1: index=_internal | stats count by sourcetype 
query 2: index=main | stats count by sourcetype
both gives sourcetype and count as column

index=_internal | stats count by sourcetype 
| append [search index=main | stats count by sourcetype]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jan 2014 18:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193492#M55698</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-02T18:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show result of multiple queries as rows of single Table (one query=one row)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193493#M55699</link>
      <description>&lt;P&gt;Getting error - Error in 'multisearch' command: Multisearch subsearches may only contain purely streaming operations (subsearch 1 contains a non-streaming command.)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 06:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-result-of-multiple-queries-as-rows-of-single-Table-one/m-p/193493#M55699</guid>
      <dc:creator>vermabhi90</dc:creator>
      <dc:date>2019-09-13T06:17:26Z</dc:date>
    </item>
  </channel>
</rss>

