<?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: SingleValue Panel - replace Value with Text in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38953#M1841</link>
    <description>&lt;P&gt;I found Solution with eval and Regex...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count as errors | rangemap field=errors low=0-0 default=severe | replace 0 with "Service OK" | eval errors = replace (errors,"[1-9]+","Service NOK")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for helping.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2013 14:38:36 GMT</pubDate>
    <dc:creator>nwe</dc:creator>
    <dc:date>2013-02-22T14:38:36Z</dc:date>
    <item>
      <title>SingleValue Panel - replace Value with Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38949#M1837</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I created SingleValue Panels on my dashboard which shows me a status of a Application. This is my search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count as errors | rangemap field=errors low=0-0 default=severe  | replace 0 with "Service OK"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I replaced 0 with &lt;STRONG&gt;Service OK&lt;/STRONG&gt; because it looks better on the monitoring TV. This works fine but I cannot change values &amp;gt; 0 to &lt;STRONG&gt;Service NOK&lt;/STRONG&gt;. The replace function only works with string. So if Splunk counts errors, it shows me a number on my dashboard. I want to keep rangemap in my search because I want a green color if value is 0 and red color if value &amp;gt; 0.&lt;/P&gt;

&lt;P&gt;Is there any other function I could use for this?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;Greets nwe&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 09:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38949#M1837</guid>
      <dc:creator>nwe</dc:creator>
      <dc:date>2013-02-21T09:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: SingleValue Panel - replace Value with Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38950#M1838</link>
      <description>&lt;P&gt;eval and if or case?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 09:28:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38950#M1838</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-21T09:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: SingleValue Panel - replace Value with Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38951#M1839</link>
      <description>&lt;P&gt;I tried eval this but rangemap function doesnt work anymore because of new field.&lt;/P&gt;

&lt;P&gt;... | stats count as errors | rangemap field=errors low=0-0 default=severe | eval status = if(errors = 0, "Service OK", "Service Down") | fields - errors, - range&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 09:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38951#M1839</guid>
      <dc:creator>nwe</dc:creator>
      <dc:date>2013-02-21T09:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: SingleValue Panel - replace Value with Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38952#M1840</link>
      <description>&lt;P&gt;Rangemap has a hard time doing anything if you strip off the range field afterwards.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 12:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38952#M1840</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-21T12:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: SingleValue Panel - replace Value with Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38953#M1841</link>
      <description>&lt;P&gt;I found Solution with eval and Regex...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count as errors | rangemap field=errors low=0-0 default=severe | replace 0 with "Service OK" | eval errors = replace (errors,"[1-9]+","Service NOK")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for helping.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 14:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SingleValue-Panel-replace-Value-with-Text/m-p/38953#M1841</guid>
      <dc:creator>nwe</dc:creator>
      <dc:date>2013-02-22T14:38:36Z</dc:date>
    </item>
  </channel>
</rss>

