<?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: How to add a color to the different timings  field in the dashboard. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688858#M56419</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;colorPalette type="expression"&amp;gt;if(tonumber(strftime(value,"%H")) == 6 OR tonumber(strftime(value,"%H")) == 11 OR tonumber(strftime(value,"%H")) == 18 OR  (tonumber(strftime(value,"%H")) == 21 AND tonumber(strftime(value,"%M")) &amp;lt; 35), "#A2CC3E", "#F58F39")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 28 May 2024 10:16:53 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-05-28T10:16:53Z</dc:date>
    <item>
      <title>How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688806#M56405</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;Please let me know how to add a color to time format as below.&lt;BR /&gt;Below one is not matching with the requirement.&lt;BR /&gt;&amp;lt;colorPalette type="expression"&amp;gt;if(strptime(value,"%H:%M:%S")&amp;gt;"25200", "#A2CC3E", "#F58F39")&amp;lt;/colorPalette&amp;gt;&lt;/P&gt;&lt;TABLE width="356"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="158"&gt;Time&lt;/TD&gt;&lt;TD width="198"&gt;expecting this color in Time field&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;25-05-2024 19:06&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;25-05-2024 22:10&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;25-05-2024 22:16&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;26-05-2024 06:50&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;26-05-2024 06:52&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;26-05-2024 11:50&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;26-05-2024 11:52&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;27-05-2024 07:09&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;27-05-2024 07:10&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;27-05-2024 11:52&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="158"&gt;27-05-2024 11:57&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 18:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688806#M56405</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-05-27T18:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688809#M56406</link>
      <description>&lt;P&gt;If your Time field is actually an _time field then it will be in epoch format (number of seconds since 1970), if that is the case, then you could try formatting (rather than parsing) - something like this for later than 12:30 pm&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;colorPalette type="expression"&amp;gt;if(tonumber(strftime(value,"%H%M%S"))&amp;gt;123000, "#A2CC3E", "#F58F39")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 22:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688809#M56406</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-27T22:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688826#M56412</link>
      <description>&lt;P class="lia-align-left"&gt;Yes, i agree with you.&lt;BR /&gt;But i was looking for time frame colors After 7 AM, 12 PM, 7 PM, 9:35 PM - Red and Before&amp;nbsp;7 AM, 12 PM, 7 PM, 9:35 PM - Green&lt;/P&gt;&lt;TABLE width="295"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="142"&gt;Time&lt;/TD&gt;&lt;TD width="64"&gt;expecting this color in Time field&lt;/TD&gt;&lt;TD width="89"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;25-05-2024 19:06&lt;/TD&gt;&lt;TD width="64"&gt;Red&lt;/TD&gt;&lt;TD&gt;After 7PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;25-05-2024 22:10&lt;/TD&gt;&lt;TD width="64"&gt;Red&lt;/TD&gt;&lt;TD&gt;After 10 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;25-05-2024 22:16&lt;/TD&gt;&lt;TD width="64"&gt;Red&lt;/TD&gt;&lt;TD&gt;After 10 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;26-05-2024 06:50&lt;/TD&gt;&lt;TD width="64"&gt;Green&lt;/TD&gt;&lt;TD&gt;Before 7AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;26-05-2024 06:52&lt;/TD&gt;&lt;TD width="64"&gt;Green&lt;/TD&gt;&lt;TD&gt;Before 7AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;26-05-2024 11:50&lt;/TD&gt;&lt;TD width="64"&gt;Green&lt;/TD&gt;&lt;TD&gt;Before 12 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;26-05-2024 11:52&lt;/TD&gt;&lt;TD width="64"&gt;Green&lt;/TD&gt;&lt;TD&gt;Before 12 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;27-05-2024 07:09&lt;/TD&gt;&lt;TD width="64"&gt;Red&lt;/TD&gt;&lt;TD&gt;After 7AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;27-05-2024 07:10&lt;/TD&gt;&lt;TD width="64"&gt;Red&lt;/TD&gt;&lt;TD&gt;After 7AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;27-05-2024 11:52&lt;/TD&gt;&lt;TD width="64"&gt;Green&lt;/TD&gt;&lt;TD&gt;Before 12 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="142"&gt;27-05-2024 11:57&lt;/TD&gt;&lt;TD width="64"&gt;Green&lt;/TD&gt;&lt;TD&gt;Before 12 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 28 May 2024 06:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688826#M56412</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-05-28T06:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688832#M56415</link>
      <description>&lt;P&gt;I am not sure what your question is now or is this solved?&lt;/P&gt;&lt;P&gt;What colour is 10am? It is after 7am but it is also before 12pm!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 07:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688832#M56415</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-28T07:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688833#M56416</link>
      <description>&lt;P&gt;I have a cycle so data will come&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;in between 6-7 AM, 11-12 PM, 6-7 PM, 9-9:35 PM.&lt;BR /&gt;So i want to display the color for the time After 7 AM, 12 PM, 7 PM, 9:35 PM - Red and Before&amp;nbsp;7 AM, 12 PM, 7 PM, 9:35 PM - Green.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688833#M56416</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-05-28T08:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688836#M56417</link>
      <description>&lt;P&gt;Would it be better to say anything outside the time ranges&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;6-7 AM, 11-12 PM, 6-7 PM, 9-9:35 PM is red and anything inside the ranges is green?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688836#M56417</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-28T08:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688843#M56418</link>
      <description>&lt;P class="lia-align-left"&gt;Exactly!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688843#M56418</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-05-28T08:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688858#M56419</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;colorPalette type="expression"&amp;gt;if(tonumber(strftime(value,"%H")) == 6 OR tonumber(strftime(value,"%H")) == 11 OR tonumber(strftime(value,"%H")) == 18 OR  (tonumber(strftime(value,"%H")) == 21 AND tonumber(strftime(value,"%M")) &amp;lt; 35), "#A2CC3E", "#F58F39")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 May 2024 10:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688858#M56419</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-28T10:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688882#M56420</link>
      <description>&lt;P&gt;Its working giving proper results only red color is coming on every time&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688882#M56420</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-05-28T12:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688890#M56422</link>
      <description>&lt;P&gt;It looks like it might not work with _time fields - try assign a new field to the formatted value e.g.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Time=strftime(_time,"%F %T")&lt;/LI-CODE&gt;&lt;P&gt;Then change to formatting to take this new field into account&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;colorPalette type="expression"&amp;gt;if(tonumber(strftime(strptime(value,"%F %T"),"%H")) == 6 OR tonumber(strftime(strptime(value,"%F %T"),"%H")) == 11 OR tonumber(strftime(strptime(value,"%F %T"),"%H")) == 18 OR  (tonumber(strftime(strptime(value,"%F %T"),"%H")) == 21 AND tonumber(strftime(strptime(value,"%F %T"),"%M")) &amp;lt; 35), "#A2CC3E", "#F58F39")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 May 2024 13:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688890#M56422</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-28T13:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a color to the different timings  field in the dashboard.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688895#M56423</link>
      <description>&lt;P&gt;Awesome, Its working!&lt;BR /&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 14:36:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-a-color-to-the-different-timings-field-in-the/m-p/688895#M56423</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-05-28T14:36:03Z</dc:date>
    </item>
  </channel>
</rss>

