<?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 How to trigger alert if new file is created in empty folder? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195770#M3411</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;What will be the search if I wish to create an alert such that it triggers an alert when there is a file created in an empty folder? thks&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2014 13:24:03 GMT</pubDate>
    <dc:creator>SplunkCSIT</dc:creator>
    <dc:date>2014-06-11T13:24:03Z</dc:date>
    <item>
      <title>How to trigger alert if new file is created in empty folder?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195770#M3411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;What will be the search if I wish to create an alert such that it triggers an alert when there is a file created in an empty folder? thks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 13:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195770#M3411</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-06-11T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert if new file is created in empty folder?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195771#M3412</link>
      <description>&lt;P&gt;Hi SplunkCSIT,&lt;/P&gt;

&lt;P&gt;in inputs.conf you have to setup a monitor stanza for this directory / folder and assign a sourcetype. After that you can search for this sourcetype like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=yourmonitoresourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and when ever there is an event, fire an alert - done.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 14:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195771#M3412</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-11T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert if new file is created in empty folder?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195772#M3413</link>
      <description>&lt;P&gt;Hi,if i wish to monitor the folder every 7mins, alert when there is a file created in d:\check, is the below monitor correct? If so, how come it dont work? thks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\check]
disabled = false
followTail = 0
index = monitorfolder
sourcetype = monfolder
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195772#M3413</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-06-17T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger alert if new file is created in empty folder?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195773#M3414</link>
      <description>&lt;P&gt;a &lt;CODE&gt;monitor&lt;/CODE&gt; in inputs.conf will monitor continuously the defined folder, if you want to have a cron like check use scripted in inputs.&lt;BR /&gt;
Why is it not working? check the permission on the folder, check splunkd.log for errors related to this path.&lt;BR /&gt;
btw &lt;CODE&gt;followTail = 0&lt;/CODE&gt; is not needed in your case.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 13:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-trigger-alert-if-new-file-is-created-in-empty-folder/m-p/195773#M3414</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-17T13:01:56Z</dc:date>
    </item>
  </channel>
</rss>

