<?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 Change color of Single Value Visualization based on search result (without script)? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-color-of-Single-Value-Visualization-based-on-search/m-p/616821#M50655</link>
    <description>&lt;P&gt;Hello, is it possible to change the color of the Single Value Visualization based on a time value of the search result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get a timestamp as a search result and would like to make the text of the visualization red if the timestamp is from more than 3 days ago.&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 15:06:03 GMT</pubDate>
    <dc:creator>simon_b</dc:creator>
    <dc:date>2022-10-12T15:06:03Z</dc:date>
    <item>
      <title>Change color of Single Value Visualization based on search result (without script)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-color-of-Single-Value-Visualization-based-on-search/m-p/616821#M50655</link>
      <description>&lt;P&gt;Hello, is it possible to change the color of the Single Value Visualization based on a time value of the search result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get a timestamp as a search result and would like to make the text of the visualization red if the timestamp is from more than 3 days ago.&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 15:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-color-of-Single-Value-Visualization-based-on-search/m-p/616821#M50655</guid>
      <dc:creator>simon_b</dc:creator>
      <dc:date>2022-10-12T15:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of Single Value Visualization based on search result (without script)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-color-of-Single-Value-Visualization-based-on-search/m-p/616903#M50658</link>
      <description>&lt;P&gt;Here's an example dashboard that changes the colour to red if it's &amp;gt;3 days old&lt;/P&gt;&lt;P&gt;Example just creates a random 'age' and it will either be red or green.&lt;/P&gt;&lt;P&gt;Note - it uses 'range' field to determine colour.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;tst2&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Time Age&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
          | eval timestamp=now() - (random() % 7) * 86400
          | eval range=if(timestamp &amp;amp;lt; relative_time(now(), "-3d"), "severe", "low")
          | eval timestamp=strftime(timestamp, "%F %T")
          | table timestamp range&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;timestamp&amp;lt;/option&amp;gt;
        &amp;lt;option name="height"&amp;gt;60&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;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Oct 2022 22:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-color-of-Single-Value-Visualization-based-on-search/m-p/616903#M50658</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-12T22:54:52Z</dc:date>
    </item>
  </channel>
</rss>

