<?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 Button going to red/amber/green based on dynamic threshold value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71231#M3836</link>
    <description>&lt;P&gt;My doubt is that i dont have a constant threshold value.The threshold value changes with time? how do you factor that into that?? example at 9:00 AM the threshold value is 3 it will go to amber at 120% of 3 and red at 150%3 ..where the i need the threshold to be changed to 5 at 11:00 AM now the amber state with will more than 120% of 5 and so ..&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2013 13:59:29 GMT</pubDate>
    <dc:creator>adityapavan18</dc:creator>
    <dc:date>2013-06-21T13:59:29Z</dc:date>
    <item>
      <title>Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71227#M3832</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I have a scenario where i have to put a single value button showing a avg response time that would go red/amber/green on going on/off a threshold.&lt;/P&gt;

&lt;P&gt;This is easy and can be done using range if there is a constant threshold value.&lt;/P&gt;

&lt;P&gt;Now in my scenario, the threshold value is not constant and needs to be changed with time, and the single value button will go red/amber/green based on the threshhold value at that point of time.&lt;/P&gt;

&lt;P&gt;How do i specify threshold based on time?&lt;/P&gt;

&lt;P&gt;Can this be done in splunk dashboards.Please suggest  &lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71227#M3832</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-06-21T10:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71228#M3833</link>
      <description>&lt;P&gt;Please use the application.css and .js file to acheive the goal. Have a column where it shows normal/warning/critical using eval statement.&lt;/P&gt;

&lt;P&gt;In my case i am using .SimpleResultsTable module where i will do exchange for image for a value.&lt;/P&gt;

&lt;P&gt;App.css:&lt;BR /&gt;
.SimpleResultsTable td.Normal {&lt;BR /&gt;
    background-image: url(images/normal.gif/png); [depends on browser]&lt;BR /&gt;
    background-repeat:no-repeat;&lt;BR /&gt;
    background-position:5px 3px;&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;.js file: &lt;/P&gt;

&lt;P&gt;onResultsRendered: function() {&lt;BR /&gt;
                this.forEachCellInColumn("State", function(tdElement) {&lt;BR /&gt;
                    if (tdElement.text()=="Started") {&lt;BR /&gt;
                        tdElement.text("").addClass("Normal");&lt;BR /&gt;
                    } else {&lt;BR /&gt;
                        tdElement.text("").addClass("Warning");&lt;BR /&gt;
                    }&lt;BR /&gt;
                });&lt;BR /&gt;
            }&lt;BR /&gt;
Add these codes, which will work on a dashboard.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 10:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71228#M3833</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-06-21T10:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71229#M3834</link>
      <description>&lt;P&gt;Thnks. But could you elaborate/explain the solution u gave.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 11:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71229#M3834</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-06-21T11:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71230#M3835</link>
      <description>&lt;P&gt;if you do a simple view on a dashboard, you will be able to use "simpleresultstable" module for displaying your eval field value. So i am not sure which i should explain? The .js file will replace the value with image on the go.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 11:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71230#M3835</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-06-21T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71231#M3836</link>
      <description>&lt;P&gt;My doubt is that i dont have a constant threshold value.The threshold value changes with time? how do you factor that into that?? example at 9:00 AM the threshold value is 3 it will go to amber at 120% of 3 and red at 150%3 ..where the i need the threshold to be changed to 5 at 11:00 AM now the amber state with will more than 120% of 5 and so ..&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 13:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71231#M3836</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-06-21T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71232#M3837</link>
      <description>&lt;P&gt;It depends what is your requirements are like! If your threshold values are varying with time, create a lookup / using eval statement  find the exact threshold value for that Hour. I will give an example &lt;/P&gt;

&lt;P&gt;eval threshold=case(date_hour =9 threshold, "3", date_hour =11, "5")|eval State=case(value &amp;lt;= threshold, "Normal", value &amp;gt;= threshold*1.2, "warning", value &amp;gt;= threshold*1.5, "Critical")|Table State&lt;/P&gt;

&lt;P&gt;then as i mentioned above replace the codes and place a image with relevant color to appserver/static/images folder. it will do the job what you want&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71232#M3837</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2020-09-28T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71233#M3838</link>
      <description>&lt;P&gt;Thnx a lot. Look-up way should do the trick thnx&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2013 07:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71233#M3838</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-06-24T07:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Single Value Button going to red/amber/green based on dynamic threshold value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71234#M3839</link>
      <description>&lt;P&gt;Hi, I am a newbie in Splunk. Currently, I am also working on the same issue as above i.e. the threshold value is dynamic and keeps changing with time. I need to display red, green and amber based on the threshold value. i.e. if the latency is 20% of threshold then red icon should be displayed, if the latency is 50% of threshold then green icon should be displayed and if the latency is 120% of threshold then amber icon should be displayed. &lt;BR /&gt;
As, I am new to .css and .js, I am unable to understand the above code. Can anyone please share the entire code (i.e. xml code, .css and .js code). It will be of much help for me.&lt;BR /&gt;
Currently, I have created a sample .csv file that contains the following fields:&lt;BR /&gt;
Ex: data_hour (1/1/13 8:00 AM), Latency (secs): 1.25, Threshold: 1&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 09:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-Value-Button-going-to-red-amber-green-based-on-dynamic/m-p/71234#M3839</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2014-05-02T09:10:22Z</dc:date>
    </item>
  </channel>
</rss>

