<?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 detect not-reporting hosts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501038#M139525</link>
    <description>&lt;P&gt;can't you just talk to the humans that do have access to install apps???&lt;/P&gt;

&lt;P&gt;Much easier than you re-inventing the wheel. Also based on the question below about why a lookup is necessary, I would recommend you save the scars of learning &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Plus once your alert goes nuts...you'll see why the app is so cool&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 20:54:07 GMT</pubDate>
    <dc:creator>mattymo</dc:creator>
    <dc:date>2020-02-05T20:54:07Z</dc:date>
    <item>
      <title>How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501029#M139516</link>
      <description>&lt;P&gt;We have a large number of hosts reporting to Splunk, and &lt;EM&gt;sometimes&lt;/EM&gt; (rarely), some of them stop sending events. Is there an elegant search for hosts, which have last reported anything more than &lt;EM&gt;T&lt;/EM&gt; ago?&lt;/P&gt;

&lt;P&gt;I'd like to make an alert for &lt;EM&gt;T&lt;/EM&gt; being above, say, 6 hours or so...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 22:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501029#M139516</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2020-02-04T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501030#M139517</link>
      <description>&lt;P&gt;please check out "trackme" on Splunkbase by the amazing app by @guilmxm &lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/4621/"&gt;https://splunkbase.splunk.com/app/4621/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Great app that helps you manage and alert on data sources!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 22:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501030#M139517</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2020-02-04T22:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501031#M139518</link>
      <description>&lt;P&gt;Great app! If you want an alternative to that app try Broken Hosts or Meta Woot!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 06:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501031#M139518</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-02-05T06:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501032#M139519</link>
      <description>&lt;P&gt;Hi @unitedmarsupials,&lt;BR /&gt;
you have to create a lookup (e.g. called perimeter.csv with a field called host) containing all the hosts to monitor; then you have to run a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way you have all the hosts from your list that didn't send logs in the monitoring period.&lt;BR /&gt;
You can create an alert to run e.g. every 5 minutes.&lt;BR /&gt;
If you delete the last row and add the row &lt;CODE&gt;| eval status=if(total=0,"Missing","Up")&lt;/CODE&gt;  you have a dashboard that display the host status.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 07:42:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501032#M139519</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-05T07:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501033#M139520</link>
      <description>&lt;P&gt;Thanks for the ideas, but why do I need to create a lookup? The hosts are already known to Splunk -- &lt;EM&gt;all&lt;/EM&gt; those, that have reported in the last, say, 30 days, but have &lt;EM&gt;not&lt;/EM&gt; reported in the last 5 hours.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501033#M139520</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2020-02-05T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501034#M139521</link>
      <description>&lt;P&gt;Thanks, but I don't have the access necessary to install new apps...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501034#M139521</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2020-02-05T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501035#M139522</link>
      <description>&lt;P&gt;Hi @unitedmarsupials,&lt;BR /&gt;
A manually managed lookup is the easiest way to be sure about the monitoring perimeter: if you e.g. take the hosts of last 24 hours, you don't check hosts that didn't send in the last period!&lt;/P&gt;

&lt;P&gt;Anyway, it this could be sufficient for you, you can schedule a search every night that populates the perimeter.csv lookup so you haven't to do nothing.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metedata index=_internal earliest=-24h
| dedup host
| sort host
| table host
| outputlookup perimeter.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then run the above search e.g. every 5 minutes.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501035#M139522</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-05T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501036#M139523</link>
      <description>&lt;P&gt;This is, what I ended up using -- thanks to @gcusello for the &lt;CODE&gt;stats ... BY host&lt;/CODE&gt; idea:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;a search for normal events
| fields host, _time
| stats max(_time) AS most_recent by host
| where most_recent &amp;lt; relative_time(now(), "-5h")
| eval most_recent = strftime(most_recent, "%F %T")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above performs whatever search you typically use, then looks for hosts, that haven't reported any search-satisfying matches within the specified time (5 hours in the above example). The search time-range is set by the usual time-picker, which should, obviously, include the alert time.&lt;/P&gt;

&lt;P&gt;(The &lt;CODE&gt;relative_time&lt;/CODE&gt; call can, probably, be expressed nicer, but this works.)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 17:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501036#M139523</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2020-02-05T17:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501037#M139524</link>
      <description>&lt;P&gt;yep! Honorable mention for meta woot for sure!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 20:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501037#M139524</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2020-02-05T20:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501038#M139525</link>
      <description>&lt;P&gt;can't you just talk to the humans that do have access to install apps???&lt;/P&gt;

&lt;P&gt;Much easier than you re-inventing the wheel. Also based on the question below about why a lookup is necessary, I would recommend you save the scars of learning &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Plus once your alert goes nuts...you'll see why the app is so cool&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 20:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501038#M139525</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2020-02-05T20:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect not-reporting hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501039#M139526</link>
      <description>&lt;P&gt;Hi @unitedmarsupials,&lt;BR /&gt;
your solution surely solves your functional need, but I think that's a very slow search if you use _internal (this means that you cannot execute it in an alarm e.g. every five minutes!) and a not sure search if you use a different index (because it's possible that you don't have nothing to receive on that index!).&lt;BR /&gt;
In addition, you don't check servers that didn't send logs in the search timeframe.&lt;/P&gt;

&lt;P&gt;I used the above solutions for an alert (with a frequency of 5 minutes) that's running from many years!&lt;/P&gt;

&lt;P&gt;Ciao and next time!&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 07:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-not-reporting-hosts/m-p/501039#M139526</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-06T07:39:29Z</dc:date>
    </item>
  </channel>
</rss>

