<?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 Color change based on value for single value visualization in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456905#M29975</link>
    <description>&lt;P&gt;I am receiving 8 count for below query. If logs are receiving at particular time it should display count and color as Green if not it should be in RED color.&lt;BR /&gt;
Example - If logs are there for  7.10 to 7.20 and no logs at 9.10 to 9.20 it should display as 1 (for 7.10 to 7.20) and color as RED (because no log at 9.10 to 9.20). &lt;BR /&gt;
Please help me here&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=mssql_db source=event_log "Completed : Automated Process Aii - Hunter : 29 : System Process - Ai2 Express Queue" | eval date_hourmin = strftime(_time, "%H%M%S")&lt;BR /&gt;
 | where (date_hourmin &amp;gt;= 071000 AND date_hourmin &amp;lt;= 072000) OR (date_hourmin &amp;gt;= 091000 AND date_hourmin &amp;lt;= 092000) OR (date_hourmin &amp;gt;= 111000 AND date_hourmin &amp;lt;= 112000)  OR (date_hourmin &amp;gt;= 131000 AND date_hourmin &amp;lt;= 132000) OR (date_hourmin &amp;gt;= 151000 AND date_hourmin &amp;lt;= 152000) OR (date_hourmin &amp;gt;= 171000 AND date_hourmin &amp;lt;= 172000) OR (date_hourmin &amp;gt;= 191000 AND date_hourmin &amp;lt;= 192000) OR (date_hourmin &amp;gt;= 211000 AND date_hourmin &amp;lt;= 212000) |stats count&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 04:49:22 GMT</pubDate>
    <dc:creator>alexspunkshell</dc:creator>
    <dc:date>2019-08-20T04:49:22Z</dc:date>
    <item>
      <title>Color change based on value for single value visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456905#M29975</link>
      <description>&lt;P&gt;I am receiving 8 count for below query. If logs are receiving at particular time it should display count and color as Green if not it should be in RED color.&lt;BR /&gt;
Example - If logs are there for  7.10 to 7.20 and no logs at 9.10 to 9.20 it should display as 1 (for 7.10 to 7.20) and color as RED (because no log at 9.10 to 9.20). &lt;BR /&gt;
Please help me here&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=mssql_db source=event_log "Completed : Automated Process Aii - Hunter : 29 : System Process - Ai2 Express Queue" | eval date_hourmin = strftime(_time, "%H%M%S")&lt;BR /&gt;
 | where (date_hourmin &amp;gt;= 071000 AND date_hourmin &amp;lt;= 072000) OR (date_hourmin &amp;gt;= 091000 AND date_hourmin &amp;lt;= 092000) OR (date_hourmin &amp;gt;= 111000 AND date_hourmin &amp;lt;= 112000)  OR (date_hourmin &amp;gt;= 131000 AND date_hourmin &amp;lt;= 132000) OR (date_hourmin &amp;gt;= 151000 AND date_hourmin &amp;lt;= 152000) OR (date_hourmin &amp;gt;= 171000 AND date_hourmin &amp;lt;= 172000) OR (date_hourmin &amp;gt;= 191000 AND date_hourmin &amp;lt;= 192000) OR (date_hourmin &amp;gt;= 211000 AND date_hourmin &amp;lt;= 212000) |stats count&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 04:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456905#M29975</guid>
      <dc:creator>alexspunkshell</dc:creator>
      <dc:date>2019-08-20T04:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Color change based on value for single value visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456906#M29976</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm a little confused as to what you are actually trying to achieve here, but if it's a count of time ranges where there are zero logs then you could try the below?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mssql_db source=event_log "Completed : Automated Process Aii - Hunter : 29 : System Process - Ai2 Express Queue" 
| eval date_hourmin = strftime(_time, "%H%M%S"), 
    time_bin = case(date_hourmin &amp;gt;= 071000 AND date_hourmin &amp;lt;= 072000, "07", date_hourmin &amp;gt;= 091000 AND date_hourmin &amp;lt;= 092000, "09", date_hourmin &amp;gt;= 111000 AND date_hourmin &amp;lt;= 112000, "11", date_hourmin &amp;gt;= 131000 AND date_hourmin &amp;lt;= 132000, "13", date_hourmin &amp;gt;= 151000 AND date_hourmin &amp;lt;= 152000, "15", date_hourmin &amp;gt;= 171000 AND date_hourmin &amp;lt;= 172000, "17", date_hourmin &amp;gt;= 191000 AND date_hourmin &amp;lt;= 192000, "19", date_hourmin &amp;gt;= 211000 AND date_hourmin &amp;lt;= 212000, "21") 
| stats count as logs by time_bin
| stats count(eval(logs=0)) as missing_logs
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Aug 2019 13:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456906#M29976</guid>
      <dc:creator>ALXWBR</dc:creator>
      <dc:date>2019-08-20T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Color change based on value for single value visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456907#M29977</link>
      <description>&lt;P&gt;@ALXWBR Thanks for your reply !!!    From your query i could able to find the missing logs. Thanks much.&lt;/P&gt;

&lt;P&gt;Now if any logs missed at that particular time, then the single value visualization should change to RED color. Else it should be in Green color.  &lt;/P&gt;

&lt;P&gt;Example - If any logs missed at 7 AM or 9 AM or 11 AM or any time then it should change the visualization color to RED.&lt;/P&gt;

&lt;P&gt;Please help here.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 15:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456907#M29977</guid>
      <dc:creator>alexspunkshell</dc:creator>
      <dc:date>2019-08-20T15:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Color change based on value for single value visualization</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456908#M29978</link>
      <description>&lt;P&gt;Hi @alexspunkshell &lt;/P&gt;

&lt;P&gt;On the single viz, select format visualisation, then select color.&lt;BR /&gt;
Under use colors, select 'Yes'&lt;BR /&gt;
Then change the first range from min to 0 with color red and set the second range from 0 to max with color green.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 10:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Color-change-based-on-value-for-single-value-visualization/m-p/456908#M29978</guid>
      <dc:creator>ALXWBR</dc:creator>
      <dc:date>2020-01-28T10:00:02Z</dc:date>
    </item>
  </channel>
</rss>

