<?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 do I modify my search to output results in certain colors based on different ranges of percentage values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-modify-my-search-to-output-results-in-certain-colors/m-p/219110#M64408</link>
    <description>&lt;P&gt;Have you considered the &lt;CODE&gt;rangemap&lt;/CODE&gt; command? &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Rangemap"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Rangemap&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2016 15:53:32 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-01-11T15:53:32Z</dc:date>
    <item>
      <title>How do I modify my search to output results in certain colors based on different ranges of percentage values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-modify-my-search-to-output-results-in-certain-colors/m-p/219109#M64407</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I have this query which is running and giving me the difference of errors from yesterday and today based on Name, but need a little help in modifying it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest="-1500m@m" latest="-1440m@m" index=Test host=* | chart count(Errors) as "Yesterday" by Name | join type=outer Name [search index=Test host=* earliest =-60m@m latest=now | chart count(Errors) as "Today" by Name] | eval errDiff=(((Today-Yesterday)/Yesterday)*100) . "%" | sort -Yesterday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is giving the desired result.&lt;BR /&gt;
But now I want to get the result based on the % of errors.&lt;/P&gt;

&lt;P&gt;For e.g &lt;BR /&gt;
errDiff 0-24 must be GREEN&lt;BR /&gt;
errDiff 25-49 must be YELLOW&lt;BR /&gt;
errDiff &amp;gt;50 must be RED&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest="-1500m@m" latest="-1440m@m" index=Test host=* | chart count(Errors) as "Yesterday" by Name | join type=outer Name [search index=Test host=* earliest =-60m@m latest=now | chart count(Errors) as "Today" by Name] | eval errDiff=(((Today-Yesterday)/Yesterday)*100) | eval errDiff=case(errDiff&amp;gt;=0 AND errDiff&amp;lt;25, "GREEN", errDiff&amp;gt;=25 AND errDiff&amp;lt;50, "YELLOW", errDiff&amp;gt;=50, "RED") | sort -Yesterday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This one is coming perfectly, but it is not showing the errDiff %. I need errDiff  % as well as the classification based on color...&lt;/P&gt;

&lt;P&gt;Any leads?&lt;/P&gt;

&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-modify-my-search-to-output-results-in-certain-colors/m-p/219109#M64407</guid>
      <dc:creator>tanhadil4vr</dc:creator>
      <dc:date>2016-01-11T08:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify my search to output results in certain colors based on different ranges of percentage values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-modify-my-search-to-output-results-in-certain-colors/m-p/219110#M64408</link>
      <description>&lt;P&gt;Have you considered the &lt;CODE&gt;rangemap&lt;/CODE&gt; command? &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Rangemap"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Rangemap&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 15:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-modify-my-search-to-output-results-in-certain-colors/m-p/219110#M64408</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-01-11T15:53:32Z</dc:date>
    </item>
  </channel>
</rss>

