<?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: Alert if no log messages in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62146#M852</link>
    <description>&lt;P&gt;So how does the search change to test for a count of at least 1 record?  I'm new to Splunk and not sure what to add to the search noted above.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2013 16:00:23 GMT</pubDate>
    <dc:creator>bshields1</dc:creator>
    <dc:date>2013-01-30T16:00:23Z</dc:date>
    <item>
      <title>Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62137#M843</link>
      <description>&lt;P&gt;I'm indexing logfiles from a custom web application that receives nonstop traffic, resulting in virtually nonstop log messages.  Occasionally (unfortunately) the application will hang, resulting in a gap in the logging.  I'd like to be alerted if this condition occurs.  Any ideas on how to search/alert in realtime for "gaps" in the log file, or an absence of data?  &lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2010 21:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62137#M843</guid>
      <dc:creator>rmacurak</dc:creator>
      <dc:date>2010-10-01T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62138#M844</link>
      <description>&lt;P&gt;Our solution for this was to run a saved search every n minutes that searches back n minutes for everything. If the results count is less than 1 we send an email.  Although not real time, we use n = 5 which fits our needs.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2010 21:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62138#M844</guid>
      <dc:creator>christopherutz</dc:creator>
      <dc:date>2010-10-01T21:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62139#M845</link>
      <description>&lt;P&gt;If you just want the immediate alert (no historical reporting), you could do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources | search source=yoursource | eval age=now()-lastTime | search age&amp;gt;60
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it returns any results, your source has not reported in a longer-than-expected amount of time (60 seconds in this case).&lt;/P&gt;

&lt;P&gt;&lt;I&gt;Note:   It's not clear to me whether it's preferable to use &lt;CODE&gt;lastTime&lt;/CODE&gt; or &lt;CODE&gt;RecentTime&lt;/CODE&gt; in the &lt;CODE&gt;eval&lt;/CODE&gt; statement. Maybe someone else can explain the difference.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2010 21:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62139#M845</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-01T21:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62140#M846</link>
      <description>&lt;P&gt;Elegant.  Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2010 00:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62140#M846</guid>
      <dc:creator>rmacurak</dc:creator>
      <dc:date>2010-10-02T00:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62141#M847</link>
      <description>&lt;P&gt;This was my initial idea as well, but I figured there was a better way.  This &lt;EM&gt;is&lt;/EM&gt; a good way to look back at historical data, though, which also comes in handy&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2010 00:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62141#M847</guid>
      <dc:creator>rmacurak</dc:creator>
      <dc:date>2010-10-02T00:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62142#M848</link>
      <description>&lt;P&gt;lastTime is the time value of the last event received's timestamp.&lt;/P&gt;

&lt;P&gt;recentTime is the last time (on the index server) that an event was received.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2010 03:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62142#M848</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2010-10-02T03:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62143#M849</link>
      <description>&lt;P&gt;Unfortunately I was too quick to mark this as solved.  It seems that the "age" always grows to 30s and resets to 0s, indicating that the remote Splunk servers that feed this index are only sending data every 30 seconds, even though the logs are constantly written -- does that sound plausible?  If so, how do I instruct the Splunk forwarders to stream data in realtime rather than batching every 30 seconds?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2010 22:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62143#M849</guid>
      <dc:creator>rmacurak</dc:creator>
      <dc:date>2010-10-04T22:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62144#M850</link>
      <description>&lt;P&gt;My guess (and only a guess) is that events are streaming, but the metadata only gets updated every 30 seconds. Is that really a problem though?  How often do you want to run the saved search?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 00:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62144#M850</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-05T00:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62145#M851</link>
      <description>&lt;P&gt;Perhaps not.  Ideally I'd be able to identify 5-10 second gaps in the logs, which indicates the "hanging" condition.  I'll investigate your hypothesis, thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 00:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62145#M851</guid>
      <dc:creator>rmacurak</dc:creator>
      <dc:date>2010-10-05T00:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alert if no log messages</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62146#M852</link>
      <description>&lt;P&gt;So how does the search change to test for a count of at least 1 record?  I'm new to Splunk and not sure what to add to the search noted above.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-if-no-log-messages/m-p/62146#M852</guid>
      <dc:creator>bshields1</dc:creator>
      <dc:date>2013-01-30T16:00:23Z</dc:date>
    </item>
  </channel>
</rss>

