<?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: Single Value Color Change in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556739#M158122</link>
    <description>&lt;P&gt;Close, but not exactly there. It's one panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;index=index_name&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| rename msg.event.healthStatus as healthStatus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| dedup healthStatus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table healthStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The table will only show the healthStatus. healthStatus will only equal UP or DOWN. If the value of healthStatus is UP, I want the word UP to be green. If the value of healthStatus is DOWN, I want it to be RED. Only one value will be displayed at a time because I want it to be a single value display.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 16:55:49 GMT</pubDate>
    <dc:creator>3666142</dc:creator>
    <dc:date>2021-06-22T16:55:49Z</dc:date>
    <item>
      <title>Single Value Color Change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556716#M158115</link>
      <description>&lt;P&gt;I have a panel that is a single value that only shows the Health Status as "UP" or "DOWN".&amp;nbsp; If it is "UP" I want it to be green. If it is "DOWN" I want it to be red.&lt;/P&gt;&lt;P&gt;How can I do this in the source code?&lt;/P&gt;&lt;P&gt;This is a query the shows what the panel is doing.&lt;/P&gt;&lt;P&gt;index=index_name&amp;nbsp;&lt;BR /&gt;| rename msg.event.healthStatus as healthStatus&lt;BR /&gt;| dedup healthStatus&lt;BR /&gt;| table healthStatus&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556716#M158115</guid>
      <dc:creator>3666142</dc:creator>
      <dc:date>2021-06-22T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Color Change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556725#M158116</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/196073"&gt;@3666142&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may be rangemap will help you.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Up_Down_single_View&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval value="UP" | table value | eval severity=if(value="UP",1,4) | rangemap field=severity low=0-2 default=severe&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval value="DOWN" | table value | eval severity=if(value="UP",1,4) | rangemap field=severity low=0-2 default=severe&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-06-22 at 9.33.19 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14753iE3760586D2DFDED4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-06-22 at 9.33.19 PM.png" alt="Screenshot 2021-06-22 at 9.33.19 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Important links:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Rangemap" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Rangemap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Migration_for_rangemap_settings_in_existing_single_value_visualizations" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Migration_for_rangemap_settings_in_existing_single_value_visualizations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556725#M158116</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-22T16:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Color Change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556739#M158122</link>
      <description>&lt;P&gt;Close, but not exactly there. It's one panel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;index=index_name&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| rename msg.event.healthStatus as healthStatus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| dedup healthStatus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| table healthStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The table will only show the healthStatus. healthStatus will only equal UP or DOWN. If the value of healthStatus is UP, I want the word UP to be green. If the value of healthStatus is DOWN, I want it to be RED. Only one value will be displayed at a time because I want it to be a single value display.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556739#M158122</guid>
      <dc:creator>3666142</dc:creator>
      <dc:date>2021-06-22T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Color Change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556743#M158125</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/196073"&gt;@3666142&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Up_Down_single_View&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=index_name 
| rename msg.event.healthStatus as healthStatus
| dedup healthStatus
| table healthStatus | eval severity=if(healthStatus ="UP",1,4) | rangemap field=severity low=0-2 default=severe&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Single-Value-Color-Change/m-p/556743#M158125</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-22T17:00:57Z</dc:date>
    </item>
  </channel>
</rss>

