<?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: Ongoing Patching Countdown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679658#M55660</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/155648"&gt;@burwell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi so what's the patching schedule? Every 28 days starting in Feb 1?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry, yes. Every 28 days starting Feb 1.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 21:38:56 GMT</pubDate>
    <dc:creator>stevenbo</dc:creator>
    <dc:date>2024-03-05T21:38:56Z</dc:date>
    <item>
      <title>Ongoing Patching Countdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679656#M55658</link>
      <description>&lt;P&gt;Hello everyone, I am trying to use Splunk to create an ongoing patching countdown that will be Single Value (Days Until Patch) on my Dashboard. How can I go about accomplishing this? I was able to calculate 1 patch cycle, but I am not sure how to get it to recalculate for every month. Right now for example, it is telling me the next patch date is 2/29/2024. Hoping someone already has a solution built out. Thank you for any assistance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I have so far:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start= strptime("02-01-2024", "%m-%d-%Y")
| eval startStr=strftime(start, "%D")
| eval PatchDate = relative_time(start ,"+28d")
| eval PatchDateString= strftime(PatchDate, "%D")
| eval PriorPatchDate = relative_time(start ,"-28d")
| eval PriorPatchDateString = strftime(PriorPatchDate, "%D")
| eval daysCountD= strftime(PatchDate - now(), "%d")
| table daysCountD PriorPatchDateString PatchDateString&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Mar 2024 21:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679656#M55658</guid>
      <dc:creator>stevenbo</dc:creator>
      <dc:date>2024-03-05T21:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ongoing Patching Countdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679657#M55659</link>
      <description>&lt;P&gt;Hi so what's the patching schedule? Every 28 days starting in Feb 1?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 21:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679657#M55659</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-03-05T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ongoing Patching Countdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679658#M55660</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/155648"&gt;@burwell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi so what's the patching schedule? Every 28 days starting in Feb 1?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry, yes. Every 28 days starting Feb 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 21:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679658#M55660</guid>
      <dc:creator>stevenbo</dc:creator>
      <dc:date>2024-03-05T21:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ongoing Patching Countdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679668#M55661</link>
      <description>&lt;P&gt;How about something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start= strptime("02-01-2024", "%m-%d-%Y")
| eval today=now()
| eval time_difference=floor((today-start)/(60*60*24))
| eval mod_val=time_difference % 28
| eval days_to_patch=28-mod_val&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="days_to_patch.png" style="width: 926px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29607iF8D5FD3FDCC27276/image-size/large?v=v2&amp;amp;px=999" role="button" title="days_to_patch.png" alt="days_to_patch.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 22:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679668#M55661</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-03-05T22:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ongoing Patching Countdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679803#M55672</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/155648"&gt;@burwell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;How about something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start= strptime("02-01-2024", "%m-%d-%Y")
| eval today=now()
| eval time_difference=floor((today-start)/(60*60*24))
| eval mod_val=time_difference % 28
| eval days_to_patch=28-mod_val&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="days_to_patch.png" style="width: 926px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29607iF8D5FD3FDCC27276/image-size/large?v=v2&amp;amp;px=999" role="button" title="days_to_patch.png" alt="days_to_patch.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Thank you, I think this does exactly what I need! Greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679803#M55672</guid>
      <dc:creator>stevenbo</dc:creator>
      <dc:date>2024-03-06T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ongoing Patching Countdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679830#M55673</link>
      <description>&lt;P&gt;Glad to hear this is what you needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can accept this solution to indicate the question was answered to your liking.&amp;nbsp; thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Ongoing-Patching-Countdown/m-p/679830#M55673</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-03-06T15:43:58Z</dc:date>
    </item>
  </channel>
</rss>

