<?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 set up a dashboard to show 8 decimal points via the source code(as opposed to the UI)? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425370#M40835</link>
    <description>&lt;P&gt;@ADRIANODL&lt;/P&gt;

&lt;P&gt;Yeah. Bcoz trend expects numerical values to calculate difference over different time periods. If we convert it to String then trend doesn't work.  &lt;/P&gt;

&lt;P&gt;But you can try a workaround.  Use your existing code block and do following changes.&lt;BR /&gt;
1)  append dummy search &lt;CODE&gt;YOUR_SEARCH | append [ | makeresults | eval count="" | table count ]&lt;/CODE&gt;. Change precision to &lt;CODE&gt;0&lt;/CODE&gt;. It will show you zero value with a trend.&lt;BR /&gt;
2) Now, we need our value with 8 digit precision. Execute a search separately and set XML token &lt;CODE&gt;token_abc&lt;/CODE&gt;. Use this token in unit option of the single view.&lt;CODE&gt;&amp;lt;option name="unit"&amp;gt;$token_abc$&amp;lt;/option&amp;gt;&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You will see just extra &lt;CODE&gt;0&lt;/CODE&gt; in the chart as I believe.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Oct 2018 15:45:45 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2018-10-15T15:45:45Z</dc:date>
    <item>
      <title>How do I set up a dashboard to show 8 decimal points via the source code(as opposed to the UI)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425367#M40832</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm working with very small units of measurement down to 8 decimal digits.&lt;/P&gt;

&lt;P&gt;When I try to set up my dashboards to show 0.00000000 via the source code (as opposed to the UI), I get the following warning:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Value "0.00000000" is not in the list of allowed values ["0","0.0","0.00","0.000","0.0000"]
The UI itself only allows me to pick values up to 4 decimal units.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;IS there a way to work around such limitation of Splunk?&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Adri&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 00:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425367#M40832</guid>
      <dc:creator>ADRIANODL</dc:creator>
      <dc:date>2018-10-14T00:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up a dashboard to show 8 decimal points via the source code(as opposed to the UI)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425368#M40833</link>
      <description>&lt;P&gt;@ADRIANODL&lt;/P&gt;

&lt;P&gt;Yes, &lt;CODE&gt;Precision&lt;/CODE&gt; allowed up to 4 digits. But it is for numbers only. So let's make the value in String.  If you have any unit for your value then append to make it a string.  Check below dashboard for same.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Long Number&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 A="1.1234567890" | eval A="Unit ".A&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;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 06:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425368#M40833</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-14T06:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up a dashboard to show 8 decimal points via the source code(as opposed to the UI)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425369#M40834</link>
      <description>&lt;P&gt;Hi Kamlesh, thanks for your response, it worked to an extent. What happened is that the number was successfully converter to string and it's now showing the 8 decimal digits, however the "trend" doesn't show anymore, since I believe it cannot calculate trends based on strings.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 00:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425369#M40834</guid>
      <dc:creator>ADRIANODL</dc:creator>
      <dc:date>2018-10-15T00:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up a dashboard to show 8 decimal points via the source code(as opposed to the UI)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425370#M40835</link>
      <description>&lt;P&gt;@ADRIANODL&lt;/P&gt;

&lt;P&gt;Yeah. Bcoz trend expects numerical values to calculate difference over different time periods. If we convert it to String then trend doesn't work.  &lt;/P&gt;

&lt;P&gt;But you can try a workaround.  Use your existing code block and do following changes.&lt;BR /&gt;
1)  append dummy search &lt;CODE&gt;YOUR_SEARCH | append [ | makeresults | eval count="" | table count ]&lt;/CODE&gt;. Change precision to &lt;CODE&gt;0&lt;/CODE&gt;. It will show you zero value with a trend.&lt;BR /&gt;
2) Now, we need our value with 8 digit precision. Execute a search separately and set XML token &lt;CODE&gt;token_abc&lt;/CODE&gt;. Use this token in unit option of the single view.&lt;CODE&gt;&amp;lt;option name="unit"&amp;gt;$token_abc$&amp;lt;/option&amp;gt;&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You will see just extra &lt;CODE&gt;0&lt;/CODE&gt; in the chart as I believe.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 15:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-set-up-a-dashboard-to-show-8-decimal-points-via-the/m-p/425370#M40835</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-15T15:45:45Z</dc:date>
    </item>
  </channel>
</rss>

