<?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 Join / Append columns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-Append-columns/m-p/197663#M57105</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
   I would like to join or append 2 dataseries and try the function append/ join. However, the result is not really what I want. Please advise the right query to achieve the goal below. &lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="cpu_load" host="myhost" | timechart span=30m avg(cpu) as cpu_average 
| append [search sourcetype="server_hits" host="myhost" | timechart bins=300 minspan=30m sum(requests) AS req] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    _time                   cpu_average ser
1   3/21/14 10:00:00.000 AM 10.087604   
2   3/21/14 10:30:00.000 AM 10.734093   
3   3/21/14 11:00:00.000 AM 10.539557
4   3/21/14 10:00:00.000 AM             1244
5   3/21/14 10:30:00.000 AM             1501
6   3/21/14 11:00:00.000 AM             1931
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Ideal Goal&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    _time                   cpu_average ser
1   3/21/14 10:00:00.000 AM 10.087604   1244
2   3/21/14 10:30:00.000 AM 10.734093   1501
3   3/21/14 11:00:00.000 AM 10.539557   1931
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Mar 2014 18:28:40 GMT</pubDate>
    <dc:creator>shangshin</dc:creator>
    <dc:date>2014-03-21T18:28:40Z</dc:date>
    <item>
      <title>Join / Append columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-Append-columns/m-p/197663#M57105</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
   I would like to join or append 2 dataseries and try the function append/ join. However, the result is not really what I want. Please advise the right query to achieve the goal below. &lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="cpu_load" host="myhost" | timechart span=30m avg(cpu) as cpu_average 
| append [search sourcetype="server_hits" host="myhost" | timechart bins=300 minspan=30m sum(requests) AS req] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    _time                   cpu_average ser
1   3/21/14 10:00:00.000 AM 10.087604   
2   3/21/14 10:30:00.000 AM 10.734093   
3   3/21/14 11:00:00.000 AM 10.539557
4   3/21/14 10:00:00.000 AM             1244
5   3/21/14 10:30:00.000 AM             1501
6   3/21/14 11:00:00.000 AM             1931
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Ideal Goal&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    _time                   cpu_average ser
1   3/21/14 10:00:00.000 AM 10.087604   1244
2   3/21/14 10:30:00.000 AM 10.734093   1501
3   3/21/14 11:00:00.000 AM 10.539557   1931
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Mar 2014 18:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-Append-columns/m-p/197663#M57105</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2014-03-21T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Join / Append columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-Append-columns/m-p/197664#M57106</link>
      <description>&lt;P&gt;I don't think you'll need to use &lt;STRONG&gt;append&lt;/STRONG&gt;, &lt;STRONG&gt;stats&lt;/STRONG&gt; should do the trick.  Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="cpu_load" OR source="server_hits" host="myhost" | bin _time span=30m | stats  avg(cpu) as cpu_average sum (requests) AS req by _time 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-Append-columns/m-p/197664#M57106</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-03-21T19:20:39Z</dc:date>
    </item>
  </channel>
</rss>

