<?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: Using Single Value Decorations in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145385#M8824</link>
    <description>&lt;P&gt;In the splunk 6 dashboard examples at the top they call out both scripts that are needed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard script="single_trend.js" stylesheet="single_trend.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both files can be found here:&lt;BR /&gt;
/opt/splunk/etc/apps/simple_xml_examples/appserver/static/&lt;/P&gt;

&lt;P&gt;To use them in your app copy them here:&lt;BR /&gt;
/opt/splunk/etc/apps/{your app}/appserver/static/&lt;/P&gt;

&lt;P&gt;Restart Splunk to get them loaded. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:35:07 GMT</pubDate>
    <dc:creator>jalfrey</dc:creator>
    <dc:date>2020-09-28T16:35:07Z</dc:date>
    <item>
      <title>Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145379#M8818</link>
      <description>&lt;P&gt;I'm building a dashboard panel and want to use the Single Value Decorations.&lt;/P&gt;

&lt;P&gt;Dashboard :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard stylesheet="single_decorations.css"&amp;gt;
    &amp;lt;label&amp;gt;Single Value Decorations&amp;lt;/label&amp;gt;
 &amp;lt;row&amp;gt;
    &amp;lt;single&amp;gt;
        &amp;lt;searchString&amp;gt;| stats count as value | eval value = 550 | rangemap field=value none=0-99 low=100-199 guarded=200-299 elevated=300-399 high=400-499 severe=500-599 default=none&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime&amp;gt;-15m&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;value&amp;lt;/option&amp;gt;
    &amp;lt;/single&amp;gt;
....................................
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The dashboard and single_decorations.css are placed in ../local/data/ui/views&lt;/P&gt;

&lt;P&gt;When the dashboard is displayed the icons are not displayed, and I guess that i have to provide a bunch of other js files to use the Simple XML Extensions, but I'm able from the documentation to find any reference on what is needed - files etc. to use the extensions. What css, js a.s.f has to be copied where. &lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2013 10:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145379#M8818</guid>
      <dc:creator>preben12</dc:creator>
      <dc:date>2013-11-16T10:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145380#M8819</link>
      <description>&lt;P&gt;The example you are looking for is here in the &lt;A href="http://apps.splunk.com/app/1603/"&gt;Splunk 6 Dashboard Examples App&lt;/A&gt;. You'll note that it only requires some custom .css&lt;/P&gt;

&lt;P&gt;The documentation as to how to handle custom css is here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Viz/CustomizeSimpleXML"&gt;&lt;/A&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Viz/CustomizeSimpleXML"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Viz/CustomizeSimpleXML&lt;/A&gt; where it explains about the new default dashboard.css and dashboard.js (used to be application.css) which you can think of as the default. These are found in the following folder:&lt;BR /&gt;&lt;PRE&gt;$SPLUNK_HOME/etc/apps/{appname}/appserver/static/&lt;/PRE&gt; Just like with any 'default' in Splunk you should leave that alone so that you don't lose changes upon upgrade. But you put your custom .css file, in this case single_decorations.css in the same folder.&lt;/P&gt;

&lt;P&gt;So to be clear... your css does NOT go in the same folder(directory) with the dashboard xml file...  reason being the &lt;PRE&gt;$SPLUNK_HOME/etc/apps/{appname}/local/data/ui/views/&lt;/PRE&gt; folder is managed in the GUI and expects to find xml files... your views and only those files... &lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2013 16:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145380#M8819</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2013-11-16T16:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145381#M8820</link>
      <description>&lt;P&gt;I was looking at the Splunk 6 Dashboard Example App. and from what I figured out by now is.&lt;BR /&gt;
When you create a new app you have to copy &lt;BR /&gt;
dashboard.css&lt;BR /&gt;
dashboard.js&lt;BR /&gt;
single_decorations.css&lt;/P&gt;

&lt;P&gt;from simple_xml_examples app home.&lt;BR /&gt;
to the $SPLUNK_HOME/etc/apps/{appname}/appserver/static/&lt;/P&gt;

&lt;P&gt;The directory is not initially created so you have to do that yourself. &lt;BR /&gt;
Edit the dashboard.js file and set the var APP = {appname};&lt;/P&gt;

&lt;P&gt;Create a dashboard + panel and have the dashboard load the css =&lt;/P&gt;

&lt;P&gt;&lt;DASHBOARD stylesheet="single_decorations.css"&gt;&lt;/DASHBOARD&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145381#M8820</guid>
      <dc:creator>preben12</dc:creator>
      <dc:date>2020-09-28T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145382#M8821</link>
      <description>&lt;P&gt;well, yes and no. &lt;/P&gt;

&lt;P&gt;Yes, you must add the stylesheet to the dashboard tag. That's in the instructions in the example.&lt;/P&gt;

&lt;P&gt;the dashboard.js and dashboard.css from the simple_xml_examples app are customized defaults for that app specifically. if you look carefully at the dashboards.js you'll note that's the js for the 'reveal' tabs below the examples. You don't need those to make the examples work. All you needed was the single_decorations.css file in your ..etc/apps/yourapp/appserver/static/ directory&lt;/P&gt;

&lt;P&gt;which yes... you did have to create as it is only required if you are a "developer" .&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145382#M8821</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2020-09-28T15:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145383#M8822</link>
      <description>&lt;P&gt;Also note that you have to restart Splunk (or just splunkweb) after you put new files into the appserver/static folder of an app.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2013 20:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145383#M8822</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2013-11-16T20:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145384#M8823</link>
      <description>&lt;P&gt;Thanks - yes indeed only the css is necessary + restart of splunkweb&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145384#M8823</guid>
      <dc:creator>preben12</dc:creator>
      <dc:date>2013-11-18T20:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145385#M8824</link>
      <description>&lt;P&gt;In the splunk 6 dashboard examples at the top they call out both scripts that are needed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard script="single_trend.js" stylesheet="single_trend.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both files can be found here:&lt;BR /&gt;
/opt/splunk/etc/apps/simple_xml_examples/appserver/static/&lt;/P&gt;

&lt;P&gt;To use them in your app copy them here:&lt;BR /&gt;
/opt/splunk/etc/apps/{your app}/appserver/static/&lt;/P&gt;

&lt;P&gt;Restart Splunk to get them loaded. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145385#M8824</guid>
      <dc:creator>jalfrey</dc:creator>
      <dc:date>2020-09-28T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Single Value Decorations</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145386#M8825</link>
      <description>&lt;P&gt;This is already answered and accepted.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 21:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Single-Value-Decorations/m-p/145386#M8825</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2014-05-12T21:35:28Z</dc:date>
    </item>
  </channel>
</rss>

