<?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 How to get Uptime in Days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Uptime-in-Days/m-p/585540#M204008</link>
    <description>&lt;P&gt;My output format is&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;20220129054235&lt;/STRONG&gt;.496380-300&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I need to convert the value in bold to normal and find the difference of that to now() ie., epoch time.&amp;nbsp; this will give the uptime in days&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 16:14:32 GMT</pubDate>
    <dc:creator>priya1926</dc:creator>
    <dc:date>2022-02-17T16:14:32Z</dc:date>
    <item>
      <title>How to get Uptime in Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Uptime-in-Days/m-p/585540#M204008</link>
      <description>&lt;P&gt;My output format is&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;20220129054235&lt;/STRONG&gt;.496380-300&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I need to convert the value in bold to normal and find the difference of that to now() ie., epoch time.&amp;nbsp; this will give the uptime in days&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Uptime-in-Days/m-p/585540#M204008</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-17T16:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get Uptime in Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Uptime-in-Days/m-p/585544#M204011</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;here is one way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval time="20220129054235.496380-300"
| eval epoch = strptime(time, "%Y%m%d%H%M%S.%6Q%z")
| eval time2 = strftime(epoch, "%F %T")
| eval UpTime = tostring(round(now()-epoch), "duration")&lt;/LI-CODE&gt;&lt;P&gt;If you want to calculate with UpTime then you need to convert it by yourself as usually to get days, hours, mins and seconds from it.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 12:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Uptime-in-Days/m-p/585544#M204011</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-02-17T12:04:43Z</dc:date>
    </item>
  </channel>
</rss>

