<?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: combined timecharts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169362#M186235</link>
    <description>&lt;P&gt;You could try a different approach;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx sourcetype=yyy MTYP=* RESL=* 
| eval outcome = case(((MTYP==0 AND RESL==0) OR (MTYP==1 AND RESL==0) OR (MTYP==4 AND RESL==0)), "success", ((MTYP==0 AND RESL==1) OR (MTYP==0 AND RESL==2) OR (MTYP==0 AND RESL==3) OR (MTYP==1 AND RESL==1) OR (MTYP==1 AND RESL==2) OR (MTYP==1 AND RESL==3) OR (MTYP==4 AND RESL==1) OR (MTYP==4 AND RESL==2) OR (MTYP==4 AND RESL==3)), "failed", 1==1, "unknown") 
| timechart span=1h count by outcome
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2013 13:40:14 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-12-06T13:40:14Z</dc:date>
    <item>
      <title>combined timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169361#M186234</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to combine 2 timecharts into just single graph&lt;/P&gt;

&lt;P&gt;index=xxx (MTYP=0 RESL=0) OR (MTYP=1 RESL=0) OR (MTYP=4 RESL=0) | timechart count(_raw) as successful by host&lt;/P&gt;

&lt;P&gt;index=xxx (MTYP=0 RESL=1) OR (MTYP=0 RESL=2) OR (MTYP=0 RESL=3) OR (MTYP=1 RESL=1) OR (MTYP=1 RESL=2) OR (MTYP=1 RESL=3) OR (MTYP=4 RESL=1) OR (MTYP=4 RESL=2) OR (MTYP=4 RESL=3) | timechart count(_raw) as failed by host&lt;/P&gt;

&lt;P&gt;it tried this but got an error&lt;/P&gt;

&lt;P&gt;index=xxx (MTYP=0 RESL=0) OR (MTYP=1 RESL=0) OR (MTYP=4 RESL=0) | stats count(_raw) as successful count(eval((MTYP=0 RESL=1) OR (MTYP=0 RESL=2) OR (MTYP=0 RESL=3) OR (MTYP=1 RESL=1) OR (MTYP=1 RESL=2) OR (MTYP=1 RESL=3) OR (MTYP=4 RESL=1) OR (MTYP=4 RESL=2) OR (MTYP=4 RESL=3))) as failed by _time&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169361#M186234</guid>
      <dc:creator>adomila</dc:creator>
      <dc:date>2013-12-06T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: combined timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169362#M186235</link>
      <description>&lt;P&gt;You could try a different approach;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx sourcetype=yyy MTYP=* RESL=* 
| eval outcome = case(((MTYP==0 AND RESL==0) OR (MTYP==1 AND RESL==0) OR (MTYP==4 AND RESL==0)), "success", ((MTYP==0 AND RESL==1) OR (MTYP==0 AND RESL==2) OR (MTYP==0 AND RESL==3) OR (MTYP==1 AND RESL==1) OR (MTYP==1 AND RESL==2) OR (MTYP==1 AND RESL==3) OR (MTYP==4 AND RESL==1) OR (MTYP==4 AND RESL==2) OR (MTYP==4 AND RESL==3)), "failed", 1==1, "unknown") 
| timechart span=1h count by outcome
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 13:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169362#M186235</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-12-06T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: combined timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169363#M186236</link>
      <description>&lt;P&gt;Hi Kristian,&lt;BR /&gt;
It didn't work the way I fully expect it to be but I got the idea and so I did some minor tweeks to suit my needs. Finally got it working now. Thanks a bunch.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 17:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169363#M186236</guid>
      <dc:creator>adomila</dc:creator>
      <dc:date>2013-12-06T17:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: combined timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169364#M186237</link>
      <description>&lt;P&gt;good to hear, I didn't get to test it, so it was more off the top of my head.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 18:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/combined-timecharts/m-p/169364#M186237</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-12-06T18:07:20Z</dc:date>
    </item>
  </channel>
</rss>

