<?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: Splunk query to determine how long a Splunk instance was down in past? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465962#M131233</link>
    <description>&lt;P&gt;I've seen that when Splunk is restarted from the GUI.  In that case, there is no indication of the restart.  I don't have a solution for that case.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 17:15:15 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-04-02T17:15:15Z</dc:date>
    <item>
      <title>Splunk query to determine how long a Splunk instance was down in past?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465959#M131230</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
We need to provide report, where we need to capture how long Splunk instance was down in past.&lt;BR /&gt;
Is it possible to capture using internal logs? What Splunk query can we use to get the duration?&lt;/P&gt;

&lt;P&gt;Note: Currently Splunk instances are up and running.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465959#M131230</guid>
      <dc:creator>saurabh0912</dc:creator>
      <dc:date>2020-04-02T15:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to determine how long a Splunk instance was down in past?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465960#M131231</link>
      <description>&lt;P&gt;You can search the splunkd.log files for "Shutdown complete" and "Splunkd starting" then calculate the difference between those events.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465960#M131231</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-02T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to determine how long a Splunk instance was down in past?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465961#M131232</link>
      <description>&lt;P&gt;I just see "splunkd starting" but there are no events for "shutdown complete", what does that mean?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 16:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465961#M131232</guid>
      <dc:creator>saurabh0912</dc:creator>
      <dc:date>2020-04-02T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to determine how long a Splunk instance was down in past?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465962#M131233</link>
      <description>&lt;P&gt;I've seen that when Splunk is restarted from the GUI.  In that case, there is no indication of the restart.  I don't have a solution for that case.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 17:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465962#M131233</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-02T17:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to determine how long a Splunk instance was down in past?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465963#M131234</link>
      <description>&lt;P&gt;Splink writes every 10 seconds in the resource_usage.log. With this query you can find gaps in the logging which can indicate when the splunk process was down. This is only an estimation, you have to add/substract the time splunk need to start/shutdown.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_introspection sourcetype=splunk_resource_usage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If other splunk instances send internal logs to the indexing layer (always the best practice) then you can find the "downtime" for other splunk instances by specifying the host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_introspection sourcetype=splunk_resource_usage host=XXX
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2020 05:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465963#M131234</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-03T05:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to determine how long a Splunk instance was down in past?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465964#M131235</link>
      <description>&lt;P&gt;By default, Splunk only stores the &lt;CODE&gt;_*&lt;/CODE&gt; logs for 30 days so if you need to go farther back than that, you can infer an outage by looking for a large jump in &lt;CODE&gt;latency&lt;/CODE&gt; as defined as &lt;CODE&gt;_time&lt;/CODE&gt; subtracted from&lt;CODE&gt;_indextime&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-determine-how-long-a-Splunk-instance-was-down-in/m-p/465964#M131235</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-04-03T12:12:52Z</dc:date>
    </item>
  </channel>
</rss>

