<?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 add result of multiple searches to a single table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96556#M44218</link>
    <description>&lt;P&gt;i think join works on some common fields but i don't have any common field..plz correct me if i m wrong ..&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2013 14:32:12 GMT</pubDate>
    <dc:creator>Aakanksha</dc:creator>
    <dc:date>2013-01-23T14:32:12Z</dc:date>
    <item>
      <title>How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96551#M44213</link>
      <description>&lt;P&gt;for example suppose i have a search query which gives me results avg1 and name1,&lt;BR /&gt;
and second search which gives a result avg2 and name2&lt;/P&gt;

&lt;P&gt;now I want to create a table which contains these values of search1 &amp;amp; search2 as avgs and names&lt;/P&gt;

&lt;P&gt;thanks..&lt;/P&gt;

&lt;P&gt;[Edit]&lt;BR /&gt;
Query1--&lt;BR /&gt;
 ... eval add = x+y+z |eval name="xyz"|stats avg(add) as avg1&lt;/P&gt;

&lt;P&gt;Query2--&lt;BR /&gt;
 ... eval add=d+e+f | eval name="abc"|stats avg(add) as avg2&lt;/P&gt;

&lt;P&gt;now-- result should be &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
    name    avg&lt;BR /&gt;&lt;BR /&gt;
    -----------&lt;BR /&gt;&lt;BR /&gt;
    xyz     avg1&lt;BR /&gt;&lt;BR /&gt;
    abc     avg2&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 12:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96551#M44213</guid>
      <dc:creator>Aakanksha</dc:creator>
      <dc:date>2013-01-23T12:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96552#M44214</link>
      <description>&lt;P&gt;You may use the search command appendcols.&lt;BR /&gt;
More information:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Appendcols"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Appendcols&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search_query_1|
appendcols [search your_search_query_2]|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Lp&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 13:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96552#M44214</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-01-23T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96553#M44215</link>
      <description>&lt;P&gt;Hi Aakanksha&lt;/P&gt;

&lt;P&gt;you can do this by using &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/Join"&gt;join&lt;/A&gt; or with &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/Append"&gt;append&lt;/A&gt; and run two searches at once. The &lt;CODE&gt;append&lt;/CODE&gt; command will not work on real-time searches.&lt;/P&gt;

&lt;P&gt;example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;first | join [search second]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 13:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96553#M44215</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-23T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96554#M44216</link>
      <description>&lt;P&gt;Are they saved searches ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 13:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96554#M44216</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-01-23T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96555#M44217</link>
      <description>&lt;P&gt;I have updated my question..and also i tried using appendcols but not sure whether i am using it correctly or not&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96555#M44217</guid>
      <dc:creator>Aakanksha</dc:creator>
      <dc:date>2013-01-23T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96556#M44218</link>
      <description>&lt;P&gt;i think join works on some common fields but i don't have any common field..plz correct me if i m wrong ..&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96556#M44218</guid>
      <dc:creator>Aakanksha</dc:creator>
      <dc:date>2013-01-23T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96557#M44219</link>
      <description>&lt;P&gt;yes, join works only on common fields in both searches&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96557#M44219</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-23T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add result of multiple searches to a single table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96558#M44220</link>
      <description>&lt;P&gt;As previously mentioend you can use "append" or "appendcols", or you can use "join". If you use "join", you will need a common field to join on, but this can easily be accomplished by adding &lt;CODE&gt;... | eval joinOn="blahblahblah"&lt;/CODE&gt; to both searches, then use the new field "joinOn" (which has the same value in both searchs) as the field to join on. &lt;/P&gt;

&lt;P&gt;I imagine you probably want to use append or appendcols though...&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-result-of-multiple-searches-to-a-single-table/m-p/96558#M44220</guid>
      <dc:creator>rtadams89</dc:creator>
      <dc:date>2013-01-23T14:48:28Z</dc:date>
    </item>
  </channel>
</rss>

