<?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: Splunk combine timechart result from two queries in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409304#M118076</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="123*" AND cf_org_name="xxx" AND cf_space_name="yyy" AND cf_app_name="zzz" 
| timechart span=60m count(eval(msg="ERROR")) AS Failed_Tran count(eval(msg="Transaction completed")) AS Succesfull_Tran 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jul 2019 18:17:46 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-29T18:17:46Z</dc:date>
    <item>
      <title>Splunk combine timechart result from two queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409301#M118073</link>
      <description>&lt;P&gt;Have the following queries&lt;/P&gt;

&lt;P&gt;query 1 - cf_org_name="xxx" cf_space_name="yyy" cf_app_name=&lt;EM&gt;zzz&lt;/EM&gt; index=123* msg= "&lt;EM&gt;Transaction completed&lt;/EM&gt;" | timechart count AS Succesfull_Tran span=60m&lt;/P&gt;

&lt;P&gt;query 2 - cf_org_name="xxx" cf_space_name="yyy" cf_app_name=&lt;EM&gt;zzz&lt;/EM&gt; index=123* msg= "&lt;EM&gt;ERROR&lt;/EM&gt;" | timechart count AS Failed_Tran span=60m&lt;/P&gt;

&lt;P&gt;Need help to combine the resultset into a single timechart table . Tried append  and it dosent not give the desired output .&lt;/P&gt;

&lt;H1&gt;Desired Output&lt;/H1&gt;

&lt;H1&gt;_time | Succesfull_Tran | Failed_Tran &lt;/H1&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409301#M118073</guid>
      <dc:creator>officialsubho</dc:creator>
      <dc:date>2020-09-30T01:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk combine timechart result from two queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409302#M118074</link>
      <description>&lt;P&gt;&lt;CODE&gt;| timechart span=60m count by msg&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also create a new variable and timechart by that&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval Success = if(msg="Transaction Completed","Success","Error")&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;| timechart span=60m count by Success&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409302#M118074</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-07-29T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk combine timechart result from two queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409303#M118075</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Try this too &lt;/P&gt;

&lt;P&gt;cf_org_name="xxx" cf_space_name="yyy" cf_app_name=zzz index=123*&lt;BR /&gt;
| timechart span=1h count as Total , count(eval(msg="Transaction completed")) as Succesfull_Tran , count(eval(msg="ERROR")) as Failed_Tran&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409303#M118075</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2020-09-30T01:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk combine timechart result from two queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409304#M118076</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="123*" AND cf_org_name="xxx" AND cf_space_name="yyy" AND cf_app_name="zzz" 
| timechart span=60m count(eval(msg="ERROR")) AS Failed_Tran count(eval(msg="Transaction completed")) AS Succesfull_Tran 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-combine-timechart-result-from-two-queries/m-p/409304#M118076</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-29T18:17:46Z</dc:date>
    </item>
  </channel>
</rss>

