<?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 to color the field greater than or lower than or between? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468135#M131796</link>
    <description>&lt;P&gt;You should be able to use rangemap for this.&lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| stats values(CycleCount00) as "Cycle count" by host|rangemap field="Cycle count" low=0-200 elevated=201-300 default=severe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your table, add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 06 Feb 2020 15:32:28 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2020-02-06T15:32:28Z</dc:date>
    <item>
      <title>How to color the field greater than or lower than or between?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468134#M131795</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Im a report, I am doing a basic count on a field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(CycleCount00) as "Cycle count" by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;when "Cycle count" result is &amp;gt; 300, I need to color the field in red&lt;BR /&gt;
when "Cycle count" result is between 200 and 300, I need to color the field in orange&lt;BR /&gt;
when "Cycle count" result is &amp;lt; 200, I need to color the field in green&lt;/P&gt;

&lt;P&gt;what is the better way to do this?&lt;BR /&gt;
I have also tried this it doesnt let me to user greater or lower than...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;       &amp;lt;format type="color" field="Cycle count"&amp;gt;
          &amp;lt;colorPalette type="minMidMax" maxColor="#31A35F" minColor="#FFFFFF"&amp;gt;&amp;lt;/colorPalette&amp;gt;
          &amp;lt;scale type="minMidMax"&amp;gt;&amp;lt;/scale&amp;gt;
        &amp;lt;/format&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ithought about the rangemap command but I dont succeed to use it&lt;BR /&gt;
is anybody cant help me please?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468134#M131795</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-02-06T13:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the field greater than or lower than or between?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468135#M131796</link>
      <description>&lt;P&gt;You should be able to use rangemap for this.&lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| stats values(CycleCount00) as "Cycle count" by host|rangemap field="Cycle count" low=0-200 elevated=201-300 default=severe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your table, add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468135#M131796</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-06T15:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the field greater than or lower than or between?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468136#M131797</link>
      <description>&lt;P&gt;when I add the option name range I have a issue :&lt;BR /&gt;
 Unknown option name="classField" for node="table"&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 05:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468136#M131797</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-02-07T05:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the field greater than or lower than or between?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468137#M131798</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;table sample&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=3
| streamstats count
| eval "Cycle count" = random() % 300 ,host="host_".count
| table host "Cycle count"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="Cycle count"&amp;gt;
          &amp;lt;colorPalette type="list"&amp;gt;[#53A051,#F1813F,#DC4E41]&amp;lt;/colorPalette&amp;gt;
          &amp;lt;scale type="threshold"&amp;gt;200,300&amp;lt;/scale&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;rangemap&lt;/CODE&gt; is not need.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 06:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468137#M131798</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-07T06:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the field greater than or lower than or between?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468138#M131799</link>
      <description>&lt;P&gt;perfect thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 06:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-the-field-greater-than-or-lower-than-or-between/m-p/468138#M131799</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-02-07T06:49:59Z</dc:date>
    </item>
  </channel>
</rss>

