<?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: Custom single value icon not displaying with non-count field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247594#M15444</link>
    <description>&lt;P&gt;I made the same mistake.. This was helpful.. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 02:17:02 GMT</pubDate>
    <dc:creator>k_harini</dc:creator>
    <dc:date>2017-03-30T02:17:02Z</dc:date>
    <item>
      <title>Custom single value icon not displaying with non-count field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247592#M15442</link>
      <description>&lt;P&gt;I'm creating a dashboard using a couple single value visualizations with custom icons. So far i have been able to get a few of them to work properly however the most recent one i'm having issues with the icon displaying and im not 100% sure why.&lt;/P&gt;

&lt;P&gt;Custom CSS:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#firewall .single-value.low{
     background-repeat: no-repeat;
     height:48px;
     background-image: url('https://hostip:8000/en-US/static/app/search/firewall_green.png');
 }

#firewall .single-value.high{
     background-repeat: no-repeat;
     padding-left: 40px;
     padding-top: 16px;
     height:48px;
     background-image: url('https://hostip:8000/en-US/static/app/search/firewall_red.png');
 }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Panel XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
      &amp;lt;single id="firewall"&amp;gt;
        &amp;lt;title&amp;gt;Current Throughput&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=pan* src_interface="ethernet1/4" dest_interface="ethernet1/12"| stats sum(bytes) as sbytes| eval "MB"=round(sbytes/1024/1024,2) |  table MB| rangemap field=MB low=0-8 default=high&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;rt-3s&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;rtnow&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="numberPrecision"&amp;gt;0.00&amp;lt;/option&amp;gt;
        &amp;lt;option name="showSparkline"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="showTrendIndicator"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendColorInterpretation"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendDisplayMode"&amp;gt;absolute&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;after&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="useThousandSeparators"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="linkView"&amp;gt;search&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x65a637","0xd93f3c"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[8]&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;CSS is called by:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard stylesheet="singlevalue_icons.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a couple other working panels that follow the same steps with different id's of course. but for some reason this one will display values, change colors, but the icon's will not display. &lt;/P&gt;

&lt;P&gt;icons are uploaded to &lt;A href="https://splunkhostip:8000/en-US/static/app/search/"&gt;https://splunkhostip:8000/en-US/static/app/search/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Example of a working panel:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;single id="events"&amp;gt;
    &amp;lt;title&amp;gt;Indexed Events&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index!=_internal | timechart count span=1h | rangemap field=count low=0-500000 default=high&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;rt-4h&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;rtnow&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
    &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
    &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
    &amp;lt;option name="colorMode"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="numberPrecision"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="showSparkline"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="showTrendIndicator"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="trendColorInterpretation"&amp;gt;standard&amp;lt;/option&amp;gt;
    &amp;lt;option name="trendDisplayMode"&amp;gt;absolute&amp;lt;/option&amp;gt;
    &amp;lt;option name="unitPosition"&amp;gt;after&amp;lt;/option&amp;gt;
    &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="useThousandSeparators"&amp;gt;1&amp;lt;/option&amp;gt;
    &amp;lt;option name="linkView"&amp;gt;search&amp;lt;/option&amp;gt;
    &amp;lt;option name="rangeColors"&amp;gt;["0x65a637","0xd93f3c"]&amp;lt;/option&amp;gt;
    &amp;lt;option name="rangeValues"&amp;gt;[5000000]&amp;lt;/option&amp;gt;
    &amp;lt;option name="underLabel"&amp;gt;Compared to Previous Hour&amp;lt;/option&amp;gt;
  &amp;lt;/single&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only thing i can see different is stats count rangemap field=count vs the custom eval field of MB which is set as rangemap field=MB &lt;/P&gt;

&lt;P&gt;Any suggestions would be amazing!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 20:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247592#M15442</guid>
      <dc:creator>dcoomer</dc:creator>
      <dc:date>2016-07-08T20:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom single value icon not displaying with non-count field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247593#M15443</link>
      <description>&lt;P&gt;I was able to finally track down what the difference's were. I had forgotten to define the values in the option settings of the single value panel for the range map.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
     &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the field value has to match w/e the value of the timechart or stats is. ex. stats count(sum) = count(sum) vs timechart count by xyz = count&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 12:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247593#M15443</guid>
      <dc:creator>dcoomer</dc:creator>
      <dc:date>2016-07-12T12:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom single value icon not displaying with non-count field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247594#M15444</link>
      <description>&lt;P&gt;I made the same mistake.. This was helpful.. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 02:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-single-value-icon-not-displaying-with-non-count-field/m-p/247594#M15444</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2017-03-30T02:17:02Z</dc:date>
    </item>
  </channel>
</rss>

