<?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: Send email when application server/network device is not pushing syslog to Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83973#M17455</link>
    <description>&lt;P&gt;Yes, although you need to define some criteria. For example -&lt;BR /&gt;&lt;BR /&gt;
Search for hosts that have sent syslog events in the past week, but have not sent syslog events in the past hour.&lt;BR /&gt;&lt;BR /&gt;
Here is a search that would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=*syslog* earliest=-7d 
| fields host 
| eval hcount = if (_time&amp;gt;=relative_time(now(),"-1h"),1,0)
| stats sum(hcount) as hourlyCount count as weeklyCount by host
| where hourlyCount == 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could then schedule this to run every hour and alert if number of events is greater than zero.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2012 04:34:56 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-10-09T04:34:56Z</dc:date>
    <item>
      <title>Send email when application server/network device is not pushing syslog to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83972#M17454</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Is there a way for Splunk to send out an email notification when Splunk is not receiving any syslog entries from an application server or a network device?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 03:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83972#M17454</guid>
      <dc:creator>satoshi86</dc:creator>
      <dc:date>2012-10-09T03:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when application server/network device is not pushing syslog to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83973#M17455</link>
      <description>&lt;P&gt;Yes, although you need to define some criteria. For example -&lt;BR /&gt;&lt;BR /&gt;
Search for hosts that have sent syslog events in the past week, but have not sent syslog events in the past hour.&lt;BR /&gt;&lt;BR /&gt;
Here is a search that would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=*syslog* earliest=-7d 
| fields host 
| eval hcount = if (_time&amp;gt;=relative_time(now(),"-1h"),1,0)
| stats sum(hcount) as hourlyCount count as weeklyCount by host
| where hourlyCount == 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could then schedule this to run every hour and alert if number of events is greater than zero.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 04:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83973#M17455</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-10-09T04:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when application server/network device is not pushing syslog to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83974#M17456</link>
      <description>&lt;P&gt;Hi Iguinn,&lt;BR /&gt;
I tried to run your command and it gives me the error:-&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: The arguments to the 'relative_time' function are invalid.&lt;/P&gt;

&lt;P&gt;May I know how do i fix that?&lt;BR /&gt;
I'm very sorry, I'm kinda weak in programming.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 07:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83974#M17456</guid>
      <dc:creator>satoshi86</dc:creator>
      <dc:date>2012-10-10T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when application server/network device is not pushing syslog to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83975#M17457</link>
      <description>&lt;P&gt;Sorry, it's a typo. I've updated my original answer to fix it! Thanks for commenting and sorry about that.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 20:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83975#M17457</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-10-10T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Send email when application server/network device is not pushing syslog to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83976#M17458</link>
      <description>&lt;P&gt;thanks again for your help Iguinn!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-email-when-application-server-network-device-is-not-pushing/m-p/83976#M17458</guid>
      <dc:creator>satoshi86</dc:creator>
      <dc:date>2012-10-19T10:14:05Z</dc:date>
    </item>
  </channel>
</rss>

