<?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: join SingleValue search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145134#M8788</link>
    <description>&lt;P&gt;If I understand it correctly, this should work: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx sourcetype="ConnectionStatus" State!="On"| stats count AS connection_off_count | appendcols [ index=yyy sourcetype="Events" Type!=Information (EventCode&amp;gt;="3012" AND EventCode&amp;lt;="3054") | stats count AS event_error_count] | eval warning_type = case( (connection_off_count ==0) AND (event_error_count == 0), "No Errors", (connection_off_count ==0) AND (event_error_count &amp;gt; 0), "Warning", (connection_off_count &amp;gt; 0) AND (event_error_count &amp;gt; 0),"Error") | table warning_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Sep 2014 07:36:30 GMT</pubDate>
    <dc:creator>sk314</dc:creator>
    <dc:date>2014-09-30T07:36:30Z</dc:date>
    <item>
      <title>join SingleValue search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145133#M8787</link>
      <description>&lt;P&gt;how do I join below two searches and return within same SingleValue with following conditions..&lt;/P&gt;

&lt;P&gt;If "ConnectionStatus" is "On" and "Events" is "0" , display "No Errors" with low range&lt;BR /&gt;
If "ConnectionStatus" is "On" and "Events" is greater than "0" , display "Warning" with elevated range&lt;BR /&gt;
If "ConnectionStatus" is NOT "On" and "Events" is greater than "0" , display "Error" with severe range&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ConnectionStatus&lt;/STRONG&gt;&lt;BR /&gt;
index=xxx sourcetype="ConnectionStatus" State!="On" |stats first(State) as State | stats count | appendpipe [ stats count | eval Status="Up" | where count==0 ] | eval Status=if(count==0,"Up","Down") | eval range = if(Status=="No Errors","low","severe")&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Events&lt;/STRONG&gt;&lt;BR /&gt;
index=yyy sourcetype="Events" Type!=Information (EventCode&amp;gt;="3012" AND EventCode&amp;lt;="3054") | stats count | eval StateBool = if (count==0, 0, 1) | eval Status=if(count==0,"No Errors","Warning") | rangemap field=StateBool low=0-0 elevated=1-1 | table Status range&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 03:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145133#M8787</guid>
      <dc:creator>kris99</dc:creator>
      <dc:date>2014-09-30T03:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: join SingleValue search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145134#M8788</link>
      <description>&lt;P&gt;If I understand it correctly, this should work: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xxx sourcetype="ConnectionStatus" State!="On"| stats count AS connection_off_count | appendcols [ index=yyy sourcetype="Events" Type!=Information (EventCode&amp;gt;="3012" AND EventCode&amp;lt;="3054") | stats count AS event_error_count] | eval warning_type = case( (connection_off_count ==0) AND (event_error_count == 0), "No Errors", (connection_off_count ==0) AND (event_error_count &amp;gt; 0), "Warning", (connection_off_count &amp;gt; 0) AND (event_error_count &amp;gt; 0),"Error") | table warning_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Sep 2014 07:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145134#M8788</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-30T07:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: join SingleValue search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145135#M8789</link>
      <description>&lt;P&gt;Thank you. That works.&lt;/P&gt;

&lt;P&gt;But how do I use range / rangemap with that search ?&lt;/P&gt;

&lt;P&gt;No Errors is Green Tick , Warning is Orange &amp;amp; Error is Red cross&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2014 03:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145135#M8789</guid>
      <dc:creator>kris99</dc:creator>
      <dc:date>2014-10-02T03:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: join SingleValue search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145136#M8790</link>
      <description>&lt;P&gt;you could pipe your rangemap logic before the table command. It should work. &lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2014 04:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join-SingleValue-search/m-p/145136#M8790</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-10-02T04:04:01Z</dc:date>
    </item>
  </channel>
</rss>

