<?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 alert if a syslog device does not send data in a rolling 24-hour period? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334598#M61859</link>
    <description>&lt;P&gt;The 'diff' variable (now()-recentTime) is greater than 86400 seconds (24 hours, as requested in the question.)&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 13:40:46 GMT</pubDate>
    <dc:creator>decoherence</dc:creator>
    <dc:date>2019-10-22T13:40:46Z</dc:date>
    <item>
      <title>How to alert if a syslog device does not send data in a rolling 24-hour period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334594#M61855</link>
      <description>&lt;P&gt;Splunkers,&lt;/P&gt;

&lt;P&gt;To meet a regulatory requirement, I need to alert on if a syslog device does NOT send data to the Indexers in a 24 hour period.&lt;BR /&gt;&lt;BR /&gt;
For example:&lt;BR /&gt;
If host splunk1 does send data, no alert needs to be generated.&lt;BR /&gt;
If host splunk2 does NOT send data, and alert must be generated.&lt;BR /&gt;
This alert needs to have a hostname.&lt;/P&gt;

&lt;P&gt;We are leveraging Nexpose to send a synthetic transaction to devices such as Cisco ACS switches.&lt;BR /&gt;
Search example:&lt;BR /&gt;
index=network message_text="Login failed for user SynTran01 - sshd"  | stats count by host&lt;BR /&gt;
This search string returns a count of 16 and it will always be 16 for this specific devices type.&lt;/P&gt;

&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334594#M61855</guid>
      <dc:creator>matthew_foos</dc:creator>
      <dc:date>2017-09-13T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert if a syslog device does not send data in a rolling 24-hour period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334595#M61856</link>
      <description>&lt;P&gt;Start with this query.  Save it as an alert running at the desired interval and triggered when the number of hosts &amp;gt; 0.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=* | eval diff=now()-recentTime | where diff &amp;gt; 86400 | fieldformat recentTime=strftime(recentTime,"%Y-%m-%d %H:%M:%S") | table host recentTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2017 21:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334595#M61856</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-09-13T21:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert if a syslog device does not send data in a rolling 24-hour period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334596#M61857</link>
      <description>&lt;P&gt;HI matthew.foos,&lt;BR /&gt;
you should create a lookup with all the hosts you have to monitor in your perimeter (e.g. a lookup called perimeter.csv with one field called host), and the schedule an alert like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=* 
| eval host=upper(host)
| stats count by host
| append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count ]
| stats sum(count) AS Total by host
| where Total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should check what is the minimum time period for monitoring because 24 hours probably is a too large period.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 22:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334596#M61857</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-13T22:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert if a syslog device does not send data in a rolling 24-hour period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334597#M61858</link>
      <description>&lt;P&gt;Hi Richgalloway,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      Can i know what does this "where diff &amp;gt; 86400" trying to say in the query?
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 11:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334597#M61858</guid>
      <dc:creator>sureshkumaar</dc:creator>
      <dc:date>2019-10-01T11:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert if a syslog device does not send data in a rolling 24-hour period?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334598#M61859</link>
      <description>&lt;P&gt;The 'diff' variable (now()-recentTime) is greater than 86400 seconds (24 hours, as requested in the question.)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alert-if-a-syslog-device-does-not-send-data-in-a-rolling/m-p/334598#M61859</guid>
      <dc:creator>decoherence</dc:creator>
      <dc:date>2019-10-22T13:40:46Z</dc:date>
    </item>
  </channel>
</rss>

