<?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 Decorations through inline code in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Decorations-through-inline-code/m-p/544420#M37340</link>
    <description>&lt;P&gt;I've learned that this can be done through additional search queries and adding the in text symbol as a "Unit". All through inline code and CSS was not needed after all.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Add Text Symbol as Unit&amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Success Test&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval count=0 | eval unit=if(count=0, "🗸", "⚠")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="p1v1unit"&amp;gt;$result.unit$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[0]&amp;lt;/option&amp;gt;
        &amp;lt;option name="unit"&amp;gt;$p1v1unit$&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;before&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;DRILLDOWNLINK&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Failure Test&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval count=33 | eval unit=if(count=0, "🗸", "⚠")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="p1v2unit"&amp;gt;$result.unit$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[0]&amp;lt;/option&amp;gt;
        &amp;lt;option name="unit"&amp;gt;$p1v2unit$&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;before&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;DRILLDOWNLINK&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 00:31:05 GMT</pubDate>
    <dc:creator>splunkomon</dc:creator>
    <dc:date>2021-03-19T00:31:05Z</dc:date>
    <item>
      <title>Single Value Decorations through inline code</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Decorations-through-inline-code/m-p/544095#M37318</link>
      <description>&lt;P&gt;I'm trying to develop on Splunk Enterprise a dashboard panel , where according to the range in which a single value result to a search is, the panel will display a success symbol (e.g. large red filled circle) with the result value next to it in red coloured font or a an error symbol (e.g. large green filled circle) with the result value in green coloured font next to it. It should be capable of adding link for drilldown.&lt;/P&gt;&lt;P&gt;The idea is to have a simplified panel with traffic light effect (green for all good and red for errors) for monitoring use case.&amp;nbsp;&amp;nbsp;The&amp;nbsp;&lt;SPAN&gt;Single Value Decorations&amp;nbsp;&lt;/SPAN&gt; examples using "single_decorations.css" shown in&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/shiny-icons.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/shiny-icons.html&lt;/A&gt;&amp;nbsp;is exactly what I'm looking for, but I since I cannot install apps I need an alternative. How to achieve a similar effect with inline code would be perfect.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Limitations:&lt;/U&gt; I do not have access to asset upload or app installation (I can't upload css/js files to the app so thus far I've been using inline css code).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 02:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Decorations-through-inline-code/m-p/544095#M37318</guid>
      <dc:creator>splunkomon</dc:creator>
      <dc:date>2021-03-17T02:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Decorations through inline code</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Decorations-through-inline-code/m-p/544420#M37340</link>
      <description>&lt;P&gt;I've learned that this can be done through additional search queries and adding the in text symbol as a "Unit". All through inline code and CSS was not needed after all.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Add Text Symbol as Unit&amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Success Test&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval count=0 | eval unit=if(count=0, "🗸", "⚠")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="p1v1unit"&amp;gt;$result.unit$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[0]&amp;lt;/option&amp;gt;
        &amp;lt;option name="unit"&amp;gt;$p1v1unit$&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;before&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;DRILLDOWNLINK&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Failure Test&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval count=33 | eval unit=if(count=0, "🗸", "⚠")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-4h@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="p1v2unit"&amp;gt;$result.unit$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[0]&amp;lt;/option&amp;gt;
        &amp;lt;option name="unit"&amp;gt;$p1v2unit$&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;before&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;DRILLDOWNLINK&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 00:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Decorations-through-inline-code/m-p/544420#M37340</guid>
      <dc:creator>splunkomon</dc:creator>
      <dc:date>2021-03-19T00:31:05Z</dc:date>
    </item>
  </channel>
</rss>

