<?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 use Splunk to monitor if a new file was added to a folder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210654#M41489</link>
    <description>&lt;P&gt;Splunk monitors files added to the directory automatically if you have configured &lt;EM&gt;monitor&lt;/EM&gt; for a directory &lt;/P&gt;

&lt;P&gt;Ref : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Whenever a new file is added, splunk creates a new source for that file unless you override the source parameter in the inputs.conf.&lt;/P&gt;

&lt;P&gt;In that case, you can create an alert when a new source is created by comparing the count with previous one or looking for a specific event from the new file etc.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2015 03:31:30 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2015-12-30T03:31:30Z</dc:date>
    <item>
      <title>How to use Splunk to monitor if a new file was added to a folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210653#M41488</link>
      <description>&lt;P&gt;As of today, is there a way to simply monitor a folder for new files created on it?&lt;/P&gt;

&lt;P&gt;Right now, I am monitoring a folder via Data Input &amp;gt; Folder, and Splunk is listing the 5 lines of the single .txt file on that folder.&lt;BR /&gt;
When, I just need to trigger an alert when a new file is added to that folder.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 22:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210653#M41488</guid>
      <dc:creator>felixms</dc:creator>
      <dc:date>2015-12-29T22:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Splunk to monitor if a new file was added to a folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210654#M41489</link>
      <description>&lt;P&gt;Splunk monitors files added to the directory automatically if you have configured &lt;EM&gt;monitor&lt;/EM&gt; for a directory &lt;/P&gt;

&lt;P&gt;Ref : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Whenever a new file is added, splunk creates a new source for that file unless you override the source parameter in the inputs.conf.&lt;/P&gt;

&lt;P&gt;In that case, you can create an alert when a new source is created by comparing the count with previous one or looking for a specific event from the new file etc.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 03:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210654#M41489</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-30T03:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Splunk to monitor if a new file was added to a folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210655#M41490</link>
      <description>&lt;P&gt;Thank you, Renjith. &lt;BR /&gt;
I am a new user, so when you mentioned "you can create an alert when a new source is created by comparing the count with previous one or looking for a specific event from the new file etc."&lt;/P&gt;

&lt;P&gt;Are these the steps to perform the above?&lt;BR /&gt;
 1. Go to Search and type the count comparison&lt;BR /&gt;
 2. Save this as an alert&lt;/P&gt;

&lt;P&gt;Could you give a link or a sample syntax to do the comparison?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 17:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210655#M41490</guid>
      <dc:creator>felixms</dc:creator>
      <dc:date>2015-12-30T17:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Splunk to monitor if a new file was added to a folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210656#M41491</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|metadata type=sources|eval difference=now() - firstTime|fields source difference|where difference &amp;lt; 300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will list the sources which have appeared in last 5 minutes. Schedule this for reasonable time window according to your requirement and adjust the difference accordingly. Try the above search without the where clause and test it &lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2015 04:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210656#M41491</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-31T04:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Splunk to monitor if a new file was added to a folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210657#M41492</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 23:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Splunk-to-monitor-if-a-new-file-was-added-to-a-folder/m-p/210657#M41492</guid>
      <dc:creator>felixms</dc:creator>
      <dc:date>2016-01-04T23:43:55Z</dc:date>
    </item>
  </channel>
</rss>

