<?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: Excluding folders with monitor input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18923#M2633</link>
    <description>&lt;P&gt;Don't know how I forgot to include that. It's Splunk 4.1.2 on Windows 2008 R2.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2010 19:39:27 GMT</pubDate>
    <dc:creator>erga00</dc:creator>
    <dc:date>2010-07-23T19:39:27Z</dc:date>
    <item>
      <title>Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18918#M2628</link>
      <description>&lt;P&gt;I have a folder containing logs as below. I want to exclude all directories not named DONTINDEX_* and index the contents of every other subfolder of 'logs'. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;logs\  
    a\  
    b\  
    DONTINDEX_a\  
    c\
    DONTINDEX_b\  
    d\
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using _blacklist inside the [monitor:///logs] stanza works but Splunk still scans the DONTINDEX* folders. Problem is that those folders contain 100k+ small files which slows indexing &amp;amp; places a heavy load on the source server.  &lt;/P&gt;

&lt;P&gt;How do I exclude the entire folder without specifying a separate monitor stanza for each folder I want to scan (a,b,c,d)? &lt;/P&gt;

&lt;P&gt;I'm running Splunk 4.1.2 on Windows 2008 R2. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2010 03:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18918#M2628</guid>
      <dc:creator>erga00</dc:creator>
      <dc:date>2010-07-23T03:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18919#M2629</link>
      <description>&lt;P&gt;The following &lt;A href="http://www.splunk.com/base/Documentation/4.1.3/Admin/Whitelistorblacklistspecificincomingdata#Blacklist_.28ignore.29_files" rel="nofollow"&gt;section&lt;/A&gt; of the documentation provides an example of how to exclude entire directories using a blacklist.  For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/logs]
    blacklist = (DONTINDEX_a|DONTINDEX_b)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jul 2010 04:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18919#M2629</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-07-23T04:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18920#M2630</link>
      <description>&lt;P&gt;Splunk still scans those directories evaluating each file within against the whitelist &amp;amp; blacklist. I don't want Splunk to open those folders in the first place.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2010 04:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18920#M2630</guid>
      <dc:creator>erga00</dc:creator>
      <dc:date>2010-07-23T04:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18921#M2631</link>
      <description>&lt;P&gt;Please mention what version of splunk you are using.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2010 05:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18921#M2631</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-07-23T05:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18922#M2632</link>
      <description>&lt;P&gt;Yes, please do. It makes a difference in behavior.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2010 14:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18922#M2632</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-23T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18923#M2633</link>
      <description>&lt;P&gt;Don't know how I forgot to include that. It's Splunk 4.1.2 on Windows 2008 R2.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2010 19:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18923#M2633</guid>
      <dc:creator>erga00</dc:creator>
      <dc:date>2010-07-23T19:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding folders with monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18924#M2634</link>
      <description>&lt;P&gt;Is it reasonable for you to have a parallel directory containing symlinks to the subdirs you wish the monitor?&lt;/P&gt;

&lt;P&gt;For example:
logsyms/&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    a -&amp;gt; /logs/a

    b -&amp;gt; /logs/b

    c -&amp;gt; /logs/c

    d -&amp;gt; /logs/d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would do what you want, as you would be monitoring the logsyms directory, and DONTINDEX* wouldn't come into play.  We could even make the 'source' field look like it's coming from /logs, if you need it.&lt;/P&gt;

&lt;P&gt;Whether or not this works for you depends more on the specifics of what those subdirectory names are...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 02:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-folders-with-monitor-input/m-p/18924#M2634</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2010-08-18T02:10:13Z</dc:date>
    </item>
  </channel>
</rss>

