<?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 Blacklisting directory not working - inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128939#M26475</link>
    <description>&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///home/foo/logs/*/app]
whitelist = \.gmt.log$
blacklist = monitor
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Underneath /home/foo/logs/base/app there are files named foo.YYYYMMDD.gmt.log&lt;BR /&gt;
There's also a subdirectory named 'monitor'&lt;BR /&gt;
The app rotates files from the 'app' directory to the 'monitor' directory&lt;/P&gt;

&lt;P&gt;But, when I run 'splunk list monitor I see&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    /home/foo/logs/base/app
    /home/foo/logs/base/app/foo.20150716.gmt.log
    /home/foo/logs/base/app/foo.20150718.gmt.log
    /home/foo/logs/base/app/monitor
    /home/foo/logs/base/app/monitor/foo.20150710.gmt.log
    /home/foo/logs/base/app/monitor/foo.20150711.gmt.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shouldn't those bottom 3 lines be omitted from the output?&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jul 2015 15:27:09 GMT</pubDate>
    <dc:creator>pkeller</dc:creator>
    <dc:date>2015-07-18T15:27:09Z</dc:date>
    <item>
      <title>Blacklisting directory not working - inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128939#M26475</link>
      <description>&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///home/foo/logs/*/app]
whitelist = \.gmt.log$
blacklist = monitor
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Underneath /home/foo/logs/base/app there are files named foo.YYYYMMDD.gmt.log&lt;BR /&gt;
There's also a subdirectory named 'monitor'&lt;BR /&gt;
The app rotates files from the 'app' directory to the 'monitor' directory&lt;/P&gt;

&lt;P&gt;But, when I run 'splunk list monitor I see&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    /home/foo/logs/base/app
    /home/foo/logs/base/app/foo.20150716.gmt.log
    /home/foo/logs/base/app/foo.20150718.gmt.log
    /home/foo/logs/base/app/monitor
    /home/foo/logs/base/app/monitor/foo.20150710.gmt.log
    /home/foo/logs/base/app/monitor/foo.20150711.gmt.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shouldn't those bottom 3 lines be omitted from the output?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 15:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128939#M26475</guid>
      <dc:creator>pkeller</dc:creator>
      <dc:date>2015-07-18T15:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting directory not working - inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128940#M26476</link>
      <description>&lt;P&gt;It looks like the whitelist overrides the blacklist, which is just the opposite of what I would expect. Try this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///home/foo/logs/*/app/*.gmt.log]
 blacklist = monitor
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jul 2015 16:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128940#M26476</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-07-18T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting directory not working - inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128941#M26477</link>
      <description>&lt;P&gt;Thank you ... That definitely works ... My original monitor stanza had the exact syntax you specify ... (with no blacklist) ... What I found peculiar, is why splunkd would pursue even looking into the monitor subdirectory when the stanza is, in my opinion, quite explicit.&lt;/P&gt;

&lt;P&gt;so /home/foo/logs/{a,b,c}/app/*.gmt.log would have no reason to look below, unless something.gmt.log was a subdirectory and not a file&lt;/P&gt;

&lt;P&gt;I would have thought that 'monitor' wouldn't come into the picture unless I'd used '...' in one of the pathname elements.&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 19:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-directory-not-working-inputs-conf/m-p/128941#M26477</guid>
      <dc:creator>pkeller</dc:creator>
      <dc:date>2015-07-20T19:45:04Z</dc:date>
    </item>
  </channel>
</rss>

