<?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: Health monitoring in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375791#M1163</link>
    <description>&lt;P&gt;Thank you &lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 06:34:52 GMT</pubDate>
    <dc:creator>yav2810</dc:creator>
    <dc:date>2018-02-19T06:34:52Z</dc:date>
    <item>
      <title>Health monitoring</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375789#M1161</link>
      <description>&lt;P&gt;The system sends the information (the value of the counter) about the number of events transmitted during this time interval approximately in 5 minutes. It is necessary to build a monitoring system - to display information about sources that do not transmit events. The task is divided into 2 blocks: 1 - the source is available, but the counter value is zero, 2 - the source is not available (events do not arrive at Splunk at all).&lt;/P&gt;

&lt;P&gt;The first task is easily solved. It builds statistics on the number of devices that transmitted events in the last hour, but the counter was zero:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query
| stats sum(cn2) as tCount by shost
| where tCount=0
| stats count(shost)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cn2 - counter&lt;/P&gt;

&lt;P&gt;Outputting a list of sources that pass the counter value to zero:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query
| stats sum(cn2) as tCount by shost
| where tCount=0
| fields shost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second task is more complicated. I consider the number of devices from which messages were received in the last hour:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query
| dedup shost
| stats count(shost) as tCount
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It remains to solve the problem of obtaining a list of devices that did not wait for events in the last hour (were not available). I ask to help with the decision of the given task&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 06:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375789#M1161</guid>
      <dc:creator>yav2810</dc:creator>
      <dc:date>2018-02-15T06:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Health monitoring</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375790#M1162</link>
      <description>&lt;P&gt;For example, you can search by this search sentence.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats count by host|search NOT [search index=* earliest=-1h|dedup host|table host]
OR
|inputlookup host_list.csv|search NOT [search index=* earliest=-1h|dedup host|table host]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 08:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375790#M1162</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-02-15T08:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Health monitoring</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375791#M1163</link>
      <description>&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 06:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Health-monitoring/m-p/375791#M1163</guid>
      <dc:creator>yav2810</dc:creator>
      <dc:date>2018-02-19T06:34:52Z</dc:date>
    </item>
  </channel>
</rss>

