<?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 combine two different search results in a single visualization? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-different-search-results-in-a-single/m-p/116993#M31140</link>
    <description>&lt;P&gt;Found a simple solution: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=type1 OR sourcetype=otherTypeB
| timechart count(eval(sourcetype=="type1")) , count(eval(sourcetype=="otherTypeB")) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Feb 2015 09:27:36 GMT</pubDate>
    <dc:creator>kenvanderheyden</dc:creator>
    <dc:date>2015-02-02T09:27:36Z</dc:date>
    <item>
      <title>How to combine two different search results in a single visualization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-different-search-results-in-a-single/m-p/116992#M31139</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I'm having trouble combining two different search results, from different source type into one visualization. &lt;/P&gt;

&lt;P&gt;These are the two search strings: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=typeA| stats count by date_year | eventstats avg(count) | rename count as "total", avg(count) as "global average"
index=* sourcetype=otherTypeB| stats count by date_year | eventstats avg(count) | rename count as "total", avg(count) as "global average"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both searches result in a line. &lt;BR /&gt;
I would like to see both in one visualization, so the correlation between the events if there is one, becomes visible. &lt;/P&gt;

&lt;P&gt;Tried using a join: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=typeA| join date_year [search sourcetype=otherTypeB] | stats count by date_year | eventstats avg(count)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this results in having a single line. &lt;BR /&gt;
Not sure how to proceed from here on. &lt;/P&gt;

&lt;P&gt;Regards, &lt;BR /&gt;
Ken. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 08:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-different-search-results-in-a-single/m-p/116992#M31139</guid>
      <dc:creator>kenvanderheyden</dc:creator>
      <dc:date>2015-02-02T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two different search results in a single visualization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-different-search-results-in-a-single/m-p/116993#M31140</link>
      <description>&lt;P&gt;Found a simple solution: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=type1 OR sourcetype=otherTypeB
| timechart count(eval(sourcetype=="type1")) , count(eval(sourcetype=="otherTypeB")) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Feb 2015 09:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-two-different-search-results-in-a-single/m-p/116993#M31140</guid>
      <dc:creator>kenvanderheyden</dc:creator>
      <dc:date>2015-02-02T09:27:36Z</dc:date>
    </item>
  </channel>
</rss>

