<?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 get Forwarder Event Detection within a specific period of time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Forwarder-Event-Detection-within-a-specific-period-of/m-p/323875#M60315</link>
    <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;there are many solutions around it, and many answers here around this topic.&lt;BR /&gt;
here is a quick and dirty solution i use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=_internal by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that will let you know there is a connection since the forwarders always sends their internal logs, so you can run it and see if count is 0 in a period of time then you might want to check that forwarder&lt;BR /&gt;
another way i report on last event seen from a forwarder is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats max(_time) as last_event where index=_internal by host
| eval now_time = now()
| eval event_secondes_ago = now_time - last_event
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you care about the data a forwarder sends to the data indexes, change &lt;CODE&gt;index=_internal to index=*&lt;/CODE&gt;&lt;BR /&gt;
you can go many ways from here&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 19:14:46 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2018-02-27T19:14:46Z</dc:date>
    <item>
      <title>How to get Forwarder Event Detection within a specific period of time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Forwarder-Event-Detection-within-a-specific-period-of/m-p/323874#M60314</link>
      <description>&lt;P&gt;We are trying to develop a solution that will allow us the ability to be notified when a forwarder has not sent an event within a specific period of time?  We need to find a way to ensure our forwarders are sending log events.&lt;/P&gt;

&lt;P&gt;Has anyone done something like this? What would be the best way to go about this?                     &lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 17:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Forwarder-Event-Detection-within-a-specific-period-of/m-p/323874#M60314</guid>
      <dc:creator>cboillot</dc:creator>
      <dc:date>2018-02-27T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Forwarder Event Detection within a specific period of time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Forwarder-Event-Detection-within-a-specific-period-of/m-p/323875#M60315</link>
      <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;there are many solutions around it, and many answers here around this topic.&lt;BR /&gt;
here is a quick and dirty solution i use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=_internal by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that will let you know there is a connection since the forwarders always sends their internal logs, so you can run it and see if count is 0 in a period of time then you might want to check that forwarder&lt;BR /&gt;
another way i report on last event seen from a forwarder is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats max(_time) as last_event where index=_internal by host
| eval now_time = now()
| eval event_secondes_ago = now_time - last_event
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you care about the data a forwarder sends to the data indexes, change &lt;CODE&gt;index=_internal to index=*&lt;/CODE&gt;&lt;BR /&gt;
you can go many ways from here&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Forwarder-Event-Detection-within-a-specific-period-of/m-p/323875#M60315</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-02-27T19:14:46Z</dc:date>
    </item>
  </channel>
</rss>

