<?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 restrict Folder Ingestion based on timestamp? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352870#M64652</link>
    <description>&lt;P&gt;We're collecting text files into Splunk from numerous servers, but due to the growing size of the parent directory, it's causing CPU to be pegged, as Splunk seems to be continuously reading all of the files.  &lt;/P&gt;

&lt;P&gt;How can I modify the input to only check for items in today or yesterday's folders?  It's a parent directory, followed by dated folders for each day, which contains anywhere from one to dozens of uniquely named files.&lt;/P&gt;

&lt;P&gt;The current input is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Windows\Logs\(ParentFolder)]
index = (indexName)
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Mar 2018 15:39:14 GMT</pubDate>
    <dc:creator>bteele</dc:creator>
    <dc:date>2018-03-14T15:39:14Z</dc:date>
    <item>
      <title>How to restrict Folder Ingestion based on timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352870#M64652</link>
      <description>&lt;P&gt;We're collecting text files into Splunk from numerous servers, but due to the growing size of the parent directory, it's causing CPU to be pegged, as Splunk seems to be continuously reading all of the files.  &lt;/P&gt;

&lt;P&gt;How can I modify the input to only check for items in today or yesterday's folders?  It's a parent directory, followed by dated folders for each day, which contains anywhere from one to dozens of uniquely named files.&lt;/P&gt;

&lt;P&gt;The current input is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Windows\Logs\(ParentFolder)]
index = (indexName)
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352870#M64652</guid>
      <dc:creator>bteele</dc:creator>
      <dc:date>2018-03-14T15:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Folder Ingestion based on timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352871#M64653</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Think of exploring that parameter on the monitor stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ignoreOlderThan = &amp;lt;nonnegative integer&amp;gt;[s|m|h|d]
* The monitor input will compare the modification time on files it encounters
  with the current time.  If the time elapsed since the modification time
  is greater than this setting, it will be placed on the ignore list.
* Files placed on the ignore list will not be checked again for any
  reason until the Splunk software restarts, or the file monitoring subsystem
  is reconfigured.  This is true even if the file becomes newer again at a
  later time.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2018 17:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352871#M64653</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-14T17:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Folder Ingestion based on timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352872#M64654</link>
      <description>&lt;P&gt;Thanks!  This worked for me.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 21:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-Folder-Ingestion-based-on-timestamp/m-p/352872#M64654</guid>
      <dc:creator>bteele</dc:creator>
      <dc:date>2018-03-15T21:49:17Z</dc:date>
    </item>
  </channel>
</rss>

