<?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: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327914#M5811</link>
    <description>&lt;P&gt;thankyou Somesoni, that was helpful, appreciate you and saurabhtcs help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 17:44:14 GMT</pubDate>
    <dc:creator>shakeel253</dc:creator>
    <dc:date>2017-09-11T17:44:14Z</dc:date>
    <item>
      <title>Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327910#M5807</link>
      <description>&lt;P&gt;Does anyone knows of a specific query that can used as an alert, if the host shutdown for more then 5 min, it triggers an alert and identifies user&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 15:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327910#M5807</guid>
      <dc:creator>shakeel253</dc:creator>
      <dc:date>2017-09-11T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327911#M5808</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;You can try the below search to get alert in case any host is down for more than 5 minutes:&lt;/P&gt;

&lt;P&gt;| tstats count latest(_time) where index=* by  host&lt;BR /&gt;
| rename earliest(_time) as earliest_time, latest(_time) as latest_time&lt;BR /&gt;
| eval status= if(latest_time &amp;gt; relative_time(now(),"-5min"),"Active","Inactive")&lt;BR /&gt;
| convert ctime(latest_time)&lt;BR /&gt;
| search status="Inactive"&lt;BR /&gt;
| fields - count &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327911#M5808</guid>
      <dc:creator>saurabhtcs</dc:creator>
      <dc:date>2020-09-29T15:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327912#M5809</link>
      <description>&lt;P&gt;i want to set this query for a specific host such as host=tableau, what should i change with in the query&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 16:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327912#M5809</guid>
      <dc:creator>shakeel253</dc:creator>
      <dc:date>2017-09-11T16:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327913#M5810</link>
      <description>&lt;P&gt;Add &lt;CODE&gt;host=yourhost&lt;/CODE&gt;  OR &lt;CODE&gt;host=yourhost1 OR host=yourhost2...&lt;/CODE&gt; just after the &lt;CODE&gt;index=*&lt;/CODE&gt; and before &lt;CODE&gt;by host&lt;/CODE&gt; in line1.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327913#M5810</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-11T17:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327914#M5811</link>
      <description>&lt;P&gt;thankyou Somesoni, that was helpful, appreciate you and saurabhtcs help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327914#M5811</guid>
      <dc:creator>shakeel253</dc:creator>
      <dc:date>2017-09-11T17:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327915#M5812</link>
      <description>&lt;P&gt;Glad we were able to you help you with your requirement. If there are not follow-up questions in same topic, do remember to close the question by accepting the answer (and upvoting it).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 17:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327915#M5812</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-11T17:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327916#M5813</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65071"&gt;@saurabhtcs&lt;/a&gt; when i used the query, if i shutdown the host, nothing comes up when i ran the query. It only shows result for last 24hrs. I started/stopped the host and ran this query but it didnt give desired result. The desire result which i want is, if the host is shutdown, the query has been setup as alert and should be able to inform user that host is shutdown or not responding with the updated timestamp&lt;/P&gt;

&lt;P&gt;| tstats count latest(_time) where index=* host="abssvm" by host | rename earliest(_time) as earliest_time, latest(_time) as latest_time | eval status= if(latest_time &amp;gt; relative_time(now(),"-5min"),"Active","Inactive") | convert ctime(latest_time) | search status="Inactive" | fields - count&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327916#M5813</guid>
      <dc:creator>shakeel253</dc:creator>
      <dc:date>2020-09-29T17:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for a Specific host Shutdown more then 5 min, Splunk send out an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327917#M5814</link>
      <description>&lt;P&gt;You should get an alert after 5 minutes. Since the threshold given in the search is 5mins, you will get an alert on after five minutes of the host being down (and the alert runs at that time).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 09:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-for-a-Specific-host-Shutdown-more-then-5-min-Splunk-send/m-p/327917#M5814</guid>
      <dc:creator>saurabhtcs</dc:creator>
      <dc:date>2017-12-22T09:46:30Z</dc:date>
    </item>
  </channel>
</rss>

