<?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 On Non Update Of A File in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53554#M736</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources | search source=yoursourcefilename | eval checkTime = relative_time(now(), "-10m") | 
fields + source recentTime checkTime | eval LastEventReceived = strftime(recentTime, "%F %r") |
eval TenMinutesAgo = strftime(checkTime, "%F %r")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save this as an alert (in 4.3, choose "Create Alert"). In your custom search condition, put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where checkTime &amp;gt; recentTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search computes checkTime as the epoch time as of 10 minutes ago. The metadata command returns recentTime as the most recent time that an event was indexed from the source. And yes, there is no search here - the first character is really a |&lt;/P&gt;

&lt;P&gt;Alternately, you could use lastTime instead of recentTime.  See more about this choice in the Search Reference manual entry for  the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Metadata"&gt;metadata&lt;/A&gt; command.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2012 06:52:11 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-01-19T06:52:11Z</dc:date>
    <item>
      <title>Alert On Non Update Of A File</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53553#M735</link>
      <description>&lt;P&gt;I have a linux file that I would like Splunk to index.  There will be a Saved Search configured for this file on a dashboard as a traffic light.  If in the event the file is not update after 10 minutes the traffic will go from green to red.&lt;/P&gt;

&lt;P&gt;What is be best way to configure this&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 15:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53553#M735</guid>
      <dc:creator>itsomana</dc:creator>
      <dc:date>2012-01-18T15:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alert On Non Update Of A File</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53554#M736</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources | search source=yoursourcefilename | eval checkTime = relative_time(now(), "-10m") | 
fields + source recentTime checkTime | eval LastEventReceived = strftime(recentTime, "%F %r") |
eval TenMinutesAgo = strftime(checkTime, "%F %r")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save this as an alert (in 4.3, choose "Create Alert"). In your custom search condition, put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where checkTime &amp;gt; recentTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search computes checkTime as the epoch time as of 10 minutes ago. The metadata command returns recentTime as the most recent time that an event was indexed from the source. And yes, there is no search here - the first character is really a |&lt;/P&gt;

&lt;P&gt;Alternately, you could use lastTime instead of recentTime.  See more about this choice in the Search Reference manual entry for  the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Metadata"&gt;metadata&lt;/A&gt; command.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 06:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53554#M736</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-01-19T06:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alert On Non Update Of A File</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53555#M737</link>
      <description>&lt;P&gt;Do you know is possible to put the above saved search onto a dashboard and if 10 minutes elapses then it will go from green to red?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 15:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53555#M737</guid>
      <dc:creator>itsomana</dc:creator>
      <dc:date>2012-01-27T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alert On Non Update Of A File</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53556#M738</link>
      <description>&lt;P&gt;Maybe, but you need to decide&lt;BR /&gt;
(1) What value, exactly, do you want to display on the dashboard?&lt;BR /&gt;
(2) What visualization do you want to use? A single value panel?&lt;BR /&gt;
(3) Do you want the dashboard to auto-refresh? How often?&lt;BR /&gt;
After you decide these things, you will probably have some significant XML to write...&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2012 10:30:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-On-Non-Update-Of-A-File/m-p/53556#M738</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-01-29T10:30:23Z</dc:date>
    </item>
  </channel>
</rss>

