<?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 Alert When Forwarer Stops and Sourcetype Stops in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390374#M11571</link>
    <description>&lt;P&gt;I have to figure out a way to do two things: alert me when a forwarder stops sending events to Splunk, and when an event stream (sourcetype) stops, with the forwarder still running.  The problem is that there are other customers using the deployment server so we can't use built-in monitoring there, unless there is a way to monitor a subset of all systems reporting in.  Let's say there are about a thousand systems to monitor and they don't all have the same sourcetypes on them.  Example:  server1 has sourcetypes A, B, C, and server2 has sourcetypes A, X, Y, Z.   I have looked at other posts from the community.  I'm stuck and hope you Splunk gurus can help.  Many thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 20:09:19 GMT</pubDate>
    <dc:creator>vwilson3</dc:creator>
    <dc:date>2019-05-23T20:09:19Z</dc:date>
    <item>
      <title>Alert When Forwarer Stops and Sourcetype Stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390374#M11571</link>
      <description>&lt;P&gt;I have to figure out a way to do two things: alert me when a forwarder stops sending events to Splunk, and when an event stream (sourcetype) stops, with the forwarder still running.  The problem is that there are other customers using the deployment server so we can't use built-in monitoring there, unless there is a way to monitor a subset of all systems reporting in.  Let's say there are about a thousand systems to monitor and they don't all have the same sourcetypes on them.  Example:  server1 has sourcetypes A, B, C, and server2 has sourcetypes A, X, Y, Z.   I have looked at other posts from the community.  I'm stuck and hope you Splunk gurus can help.  Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 20:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390374#M11571</guid>
      <dc:creator>vwilson3</dc:creator>
      <dc:date>2019-05-23T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alert When Forwarer Stops and Sourcetype Stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390375#M11572</link>
      <description>&lt;P&gt;There are few approaches you can do&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Approach 1)&lt;/STRONG&gt;  build a baseline set of sourcetypes/hostnames which you want to compulsorily monitor.(You could do it manually or fetch from cmdb). Build it as a lookup.  Let's call it  &lt;CODE&gt;baselineHosts.csv&lt;/CODE&gt;&lt;BR /&gt;
Do a search of what is currently being logged in let's say last 10mins &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats latest(_time) WHERE index=* earliest=-10m by host,sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then do a comparison of the baselineHosts.csv vs the logged systems and find which are NOT coming&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup baselineHosts.csv | fields host,sourcetype 
| join type=left host sourcetype [|tstats count WHERE index=* earliest=-10m by host,sourcetype|fields host,sourcetype]
| where count &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Approach 2)&lt;/STRONG&gt; Do based on last logged time. In here get the latest time and alert if it is more than 10 minutes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats latest(_time) as last_logged WHERE index=* earliest=-1h by host,sourcetype|eval timeDiff=now()-last_logged| where timeDiff &amp;gt; 600
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 May 2019 09:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390375#M11572</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-24T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alert When Forwarer Stops and Sourcetype Stops</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390376#M11573</link>
      <description>&lt;P&gt;Thanks koshyk!  I appreciate the help.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:05:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-When-Forwarer-Stops-and-Sourcetype-Stops/m-p/390376#M11573</guid>
      <dc:creator>vwilson3</dc:creator>
      <dc:date>2019-06-12T14:05:59Z</dc:date>
    </item>
  </channel>
</rss>

