<?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 Folder Monitoring and Alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174904#M2901</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am trying to monitor a folder and send alert notification. The idea of this task is to monitor the folder and check the files in the folder are getting processed then the files are moved to another application. The task is to send an alert for the files which take longer than period of time which I set up.  Any suggestion will be helpful &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2014 15:03:20 GMT</pubDate>
    <dc:creator>hxa27</dc:creator>
    <dc:date>2014-03-05T15:03:20Z</dc:date>
    <item>
      <title>Folder Monitoring and Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174904#M2901</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am trying to monitor a folder and send alert notification. The idea of this task is to monitor the folder and check the files in the folder are getting processed then the files are moved to another application. The task is to send an alert for the files which take longer than period of time which I set up.  Any suggestion will be helpful &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174904#M2901</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2014-03-05T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Monitoring and Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174905#M2902</link>
      <description>&lt;P&gt;I would probably write a scripted input that collected the names of the files in the folder (perhaps with additional information) on a regular schedule - maybe once a minute. Assume that I have a field named &lt;CODE&gt;filename&lt;/CODE&gt; and that I have placed the data in a sourcetype named &lt;CODE&gt;appMonitor&lt;/CODE&gt;. Finally, I want to report files that have been in the directory for more than 5 minutes (600 seconds).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=appMonitor
| stats range(_time) as timeInQueue by filename
| where timeInQueue &amp;gt; 600
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save this search and set it to run every 10 minutes over the prior 10 minutes. Set it to alert when the number of results is &amp;gt; 0.&lt;/P&gt;

&lt;P&gt;Obviously you can adjust time ranges, etc. from this example.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174905#M2902</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-03-05T15:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Monitoring and Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174906#M2903</link>
      <description>&lt;P&gt;Thanks for the response. &lt;BR /&gt;
I cannot collect the file names because they are changing all the times. So, I am just trying to monitor the folder without specifying any filenames.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 16:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174906#M2903</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2014-03-05T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Monitoring and Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174907#M2904</link>
      <description>&lt;P&gt;I am trying to have kind of different configuration in order to monitor the folder but I don't have permission to do so. Is there another way to do it ? because when I try to add Data; I could not choose the folder I have to choose the file which I do not want to. &lt;/P&gt;

&lt;P&gt;Any suggestion will be helpful&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 19:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174907#M2904</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2014-03-05T19:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Folder Monitoring and Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174908#M2905</link>
      <description>&lt;P&gt;Okay, my solution requires that the scripted input &lt;EM&gt;collects&lt;/EM&gt; the file name. So you need to write a script that Splunk runs. In your Add Data, you will specify that script. You will not specify either the folder name or the file names.&lt;/P&gt;

&lt;P&gt;Of course, your script will have to read the names of the files in the folder. If your script can't get the file names, this solution will not work.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 21:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Folder-Monitoring-and-Alert/m-p/174908#M2905</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-03-05T21:07:18Z</dc:date>
    </item>
  </channel>
</rss>

