<?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 an alert if no data is generated from a host? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186446#M3113</link>
    <description>&lt;P&gt;Here's a quick way to check for hosts not having sent data in a while:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) as latest where index=* by host | where latest &amp;lt; relative_time(now(), "-1d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the &lt;CODE&gt;-1d&lt;/CODE&gt; according to your needs, run the above search over at least twice the scheduled interval.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2014 13:24:12 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-08-19T13:24:12Z</dc:date>
    <item>
      <title>How to create an alert if no data is generated from a host?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186441#M3108</link>
      <description>&lt;P&gt;I want to run a search in splunk to find out that all the devices attached to the splunk server are generating logs. If I dont hear from a device I should receive a alert.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 09:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186441#M3108</guid>
      <dc:creator>ashari</dc:creator>
      <dc:date>2014-08-19T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an alert if no data is generated from a host?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186442#M3109</link>
      <description>&lt;P&gt;Hi ashari,&lt;/P&gt;

&lt;P&gt;check out the &lt;A href="http://apps.splunk.com/app/1294/"&gt;Splunk Deployment Monitor&lt;/A&gt; there you can find some nice saved searches related to this topic ... keyword: missing forwarders&lt;/P&gt;

&lt;P&gt;hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186442#M3109</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-08-19T10:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an alert if no data is generated from a host?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186443#M3110</link>
      <description>&lt;P&gt;can we do this without splunk deployment monitor app.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186443#M3110</guid>
      <dc:creator>ashari</dc:creator>
      <dc:date>2014-08-19T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an alert if no data is generated from a host?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186444#M3111</link>
      <description>&lt;P&gt;We had similar siutation and a heartbeat from the other system comes once in every 5 minute. So I'm doing that as a "saved Search" and run every 1 minute and checks data for the previous 6 minutes to see if there is a heartbeat. Else alert. &lt;/P&gt;

&lt;P&gt;The logic is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex earliest=-6m@s &amp;lt;your_some_more_Search&amp;gt; | stats count as COUNT_HEARTBEAT | where COUNT_HEARTBEAT=0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186444#M3111</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2014-08-19T10:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an alert if no data is generated from a host?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186445#M3112</link>
      <description>&lt;P&gt;sure, although there are a lot of search macros in the saved searches. If you look at the searches you will get an idea how it can be done.&lt;BR /&gt;
Otherwise use a lookup file which contains all your forwarder hostnames and check if all of them were seen in the past x minutes. Take a look at this &lt;A href="http://answers.splunk.com/answers/73268/search-for-hosts-in-a-lookup-but-not-in-splunk"&gt;http://answers.splunk.com/answers/73268/search-for-hosts-in-a-lookup-but-not-in-splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186445#M3112</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-08-19T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an alert if no data is generated from a host?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186446#M3113</link>
      <description>&lt;P&gt;Here's a quick way to check for hosts not having sent data in a while:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) as latest where index=* by host | where latest &amp;lt; relative_time(now(), "-1d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the &lt;CODE&gt;-1d&lt;/CODE&gt; according to your needs, run the above search over at least twice the scheduled interval.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-an-alert-if-no-data-is-generated-from-a-host/m-p/186446#M3113</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-19T13:24:12Z</dc:date>
    </item>
  </channel>
</rss>

