<?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 find out Server Uptime &amp;amp; Downtime in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701864#M238035</link>
    <description>&lt;P&gt;Hi All&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to find out Server Up time&amp;nbsp;&amp;amp; Downtime or offline&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However i am using the below command which i am not getting what i want&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| mstats max(System.System_Up_Time) AS "Uptime" WHERE index="permon_metrics" host=system1* BY host span=1m
| dedup host | rex field=host "\w{6}(?&amp;lt;function_abbr&amp;gt;\w{4})"
| search function_abbr=ADDS
| sort Uptime asc
| eval Uptime = round((now() - _time) / (60 * 60), 1)
| search Uptime="4.0"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1728947682562.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33089i11C102A15512B0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1728947682562.png" alt="jaibalaraman_0-1728947682562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to see the output in a single tile like HH:MM:SS&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 23:53:35 GMT</pubDate>
    <dc:creator>jaibalaraman</dc:creator>
    <dc:date>2024-10-14T23:53:35Z</dc:date>
    <item>
      <title>How to find out Server Uptime &amp; Downtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701864#M238035</link>
      <description>&lt;P&gt;Hi All&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to find out Server Up time&amp;nbsp;&amp;amp; Downtime or offline&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However i am using the below command which i am not getting what i want&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| mstats max(System.System_Up_Time) AS "Uptime" WHERE index="permon_metrics" host=system1* BY host span=1m
| dedup host | rex field=host "\w{6}(?&amp;lt;function_abbr&amp;gt;\w{4})"
| search function_abbr=ADDS
| sort Uptime asc
| eval Uptime = round((now() - _time) / (60 * 60), 1)
| search Uptime="4.0"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1728947682562.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33089i11C102A15512B0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1728947682562.png" alt="jaibalaraman_0-1728947682562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to see the output in a single tile like HH:MM:SS&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 23:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701864#M238035</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2024-10-14T23:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out Server Uptime &amp; Downtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701866#M238036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226870"&gt;@jaibalaraman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have a field "Uptime" and then using the eval you are calculating the same field.&amp;nbsp;&lt;BR /&gt;Could you pls suggest us with more details, thanks.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats max(System.System_Up_Time) AS "Uptime" WHERE index="permon_metrics" host=system1* BY host span=1m
| dedup host | rex field=host "\w{6}(?&amp;lt;function_abbr&amp;gt;\w{4})"
| search function_abbr=ADDS
| sort Uptime asc
| eval UptimeNew = round((now() - _time) / (60 * 60), 1) 
| table Uptime UptimeNew function_abbr host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 00:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701866#M238036</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-10-15T00:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out Server Uptime &amp; Downtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701868#M238037</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1728951978952.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33090iC3606FC887281770/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1728951978952.png" alt="jaibalaraman_0-1728951978952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry what information are you looking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 00:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701868#M238037</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2024-10-15T00:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out Server Uptime &amp; Downtime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701869#M238038</link>
      <description>&lt;P&gt;1) &amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;I am trying to find out Server Up time&amp;nbsp;&amp;amp; Downtime or offline&amp;nbsp;&lt;BR /&gt;the logs got a field "Uptime", may i know if the unit is seconds?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) how to find out the downtime or offline?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp; this command will give you number of hours before the logline was received&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;| eval Uptime = round((now() - _time) / (60 * 60), 1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;pls suggest us how you like to use this value&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; may i know why you use the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| search Uptime="4.0"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 02:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-Server-Uptime-amp-Downtime/m-p/701869#M238038</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-10-15T02:14:33Z</dc:date>
    </item>
  </channel>
</rss>

