<?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 create a count down? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611656#M212646</link>
    <description>&lt;P&gt;Subtract the current date from the go-live date and divide by 86400 to get the number of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval days = (strptime(GoLiveDate, "&amp;lt;&amp;lt;format string&amp;gt;&amp;gt;") - now()) / 86400&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where &amp;lt;&amp;lt;format string&amp;gt;&amp;gt; describes the format of the GoLiveDate value.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 20:04:38 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-09-01T20:04:38Z</dc:date>
    <item>
      <title>How to create a count down?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611651#M212642</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to create a single value panel that displays a countdown from today's date until a target date, how can I achieve this?&amp;nbsp; Right now I am using sample data and I added a field called "GoLiveDate" to the data and put the target date in (which is in the future.) What I want to do is put a panel in that says something like "80 days until Go Live."&amp;nbsp; Then tomorrow it would say "79 days until Go Live" etc etc -&amp;nbsp; Is something like this possible?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 18:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611651#M212642</guid>
      <dc:creator>Anesthet1ze</dc:creator>
      <dc:date>2022-09-01T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a count down?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611656#M212646</link>
      <description>&lt;P&gt;Subtract the current date from the go-live date and divide by 86400 to get the number of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval days = (strptime(GoLiveDate, "&amp;lt;&amp;lt;format string&amp;gt;&amp;gt;") - now()) / 86400&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where &amp;lt;&amp;lt;format string&amp;gt;&amp;gt; describes the format of the GoLiveDate value.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611656#M212646</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-01T20:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a count down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611659#M212649</link>
      <description>&lt;P&gt;Thanks so much for your answer,&amp;nbsp; I'm getting an eval statement malformed, here is the query:&lt;/P&gt;&lt;P&gt;Apologies the field is called GoLive.&lt;/P&gt;&lt;P&gt;| eval days = ((strptime(GoLive, "%Y/%m/%d") - now())/86400&lt;/P&gt;&lt;P&gt;the GoLive field in my data is formatted as such:&amp;nbsp; 20221120&lt;/P&gt;&lt;P&gt;Trying to get it to come up in a single value but it's unhappy with what I did.&amp;nbsp; Apologies, still learning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 18:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611659#M212649</guid>
      <dc:creator>Anesthet1ze</dc:creator>
      <dc:date>2022-09-01T18:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a count down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611660#M212650</link>
      <description>&lt;P&gt;Alright, sorry I got the eval statement to work, it was a bracket issue.. but the result I'm getting is not what I'm looking for it's showing 20,221,120 I'm looking for it to say 80&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 18:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611660#M212650</guid>
      <dc:creator>Anesthet1ze</dc:creator>
      <dc:date>2022-09-01T18:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a count down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611661#M212651</link>
      <description>&lt;P&gt;Me again! I figured it out, for some reason had to use the table to get it to display properly.. Splunk is still a mystery to me.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 18:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-count-down/m-p/611661#M212651</guid>
      <dc:creator>Anesthet1ze</dc:creator>
      <dc:date>2022-09-01T18:46:02Z</dc:date>
    </item>
  </channel>
</rss>

