<?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 Inputs.conf - separate monitors for sub-directories in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85736#M17809</link>
    <description>&lt;P&gt;Seeing if you could help me understand why these settings don’t work as I am expecting them to.  I have the two monitoring stanza’s in my inputs.conf&lt;BR /&gt;
If I have just monitor 1 enabled it works fine.  As soon as I enable monitor 2 it seems to override monitor 1 and causes monitor 1 not to work anymore.  It seems like when I enable monitor 2 it puts into effect the recursive=false which would include the directory that I want monitor 1 to watch.  I thought the monitoring stanzas operated independently of each other?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;monitor 1:&lt;/STRONG&gt; This should monitor all files in the DEFAULT directory but not go recursively in to other directories&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://\\server1\c$\Temp\Log\DocumentCacheListener\DEFAULT]
disabled = false
followTail = 0
index = apollo
sourcetype = default
ignoreOlderThan = 1d
crcSalt = 
recursive = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;EM&gt;monitor 2: *&lt;/EM&gt; this should monitor all files in the DocumentCacheListener directory and not go recursively into other directories.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://\\server2\c$\Temp\Log\DocumentCacheListener]
disabled = 0
followTail = 0
sourcetype = listener
ignoreOlderThan = 1d
crcSalt = 
recursive = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Jan 2013 20:00:12 GMT</pubDate>
    <dc:creator>cramasta</dc:creator>
    <dc:date>2013-01-11T20:00:12Z</dc:date>
    <item>
      <title>Inputs.conf - separate monitors for sub-directories</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85736#M17809</link>
      <description>&lt;P&gt;Seeing if you could help me understand why these settings don’t work as I am expecting them to.  I have the two monitoring stanza’s in my inputs.conf&lt;BR /&gt;
If I have just monitor 1 enabled it works fine.  As soon as I enable monitor 2 it seems to override monitor 1 and causes monitor 1 not to work anymore.  It seems like when I enable monitor 2 it puts into effect the recursive=false which would include the directory that I want monitor 1 to watch.  I thought the monitoring stanzas operated independently of each other?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;monitor 1:&lt;/STRONG&gt; This should monitor all files in the DEFAULT directory but not go recursively in to other directories&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://\\server1\c$\Temp\Log\DocumentCacheListener\DEFAULT]
disabled = false
followTail = 0
index = apollo
sourcetype = default
ignoreOlderThan = 1d
crcSalt = 
recursive = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;EM&gt;monitor 2: *&lt;/EM&gt; this should monitor all files in the DocumentCacheListener directory and not go recursively into other directories.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://\\server2\c$\Temp\Log\DocumentCacheListener]
disabled = 0
followTail = 0
sourcetype = listener
ignoreOlderThan = 1d
crcSalt = 
recursive = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2013 20:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85736#M17809</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-01-11T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf - separate monitors for sub-directories</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85737#M17810</link>
      <description>&lt;P&gt;I would recommend that you run the following command to see if there are any errors:&lt;/P&gt;

&lt;P&gt;./splunk cmd btool inputs list --debug&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 20:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85737#M17810</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2013-01-11T20:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf - separate monitors for sub-directories</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85738#M17811</link>
      <description>&lt;P&gt;no noticeable errors in the output.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 21:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85738#M17811</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-01-11T21:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf - separate monitors for sub-directories</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85739#M17812</link>
      <description>&lt;P&gt;I've got the same problem.&lt;/P&gt;

&lt;P&gt;If you enable monitor 2 the property recursive = false prevents to monitor the path under monitor 1.&lt;/P&gt;

&lt;P&gt;Check the URL 'https://&lt;FORWARDERHOST&gt;:8089/services/admin/inputstatus/TailingProcessor%3AFileStatus'&lt;/FORWARDERHOST&gt;&lt;/P&gt;

&lt;P&gt;Look at the directory ...\Temp\Log\DocumentCacheListener\DEFAULT &lt;BR /&gt;
If type is "ignored item (recursion disabled)" it's the evidence&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85739#M17812</guid>
      <dc:creator>MSimon</dc:creator>
      <dc:date>2013-01-15T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf - separate monitors for sub-directories</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85740#M17813</link>
      <description>&lt;P&gt;Here is what I had to do in order to get this to work. Involved using a inputs.conf/props.conf combination&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;this tells splunk to monitor the directory and all subdirectories&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://\\uslibintv27\c$\Temp\Log\DocumentCacheListener\]
disabled = 1
followTail = 0
host = uslibintv27
index = apollodev
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I then define my sourcetypes by creating matching source stanzas in the props.conf'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...\\DocumentCacheListener\\*log]
NO_BINARY_CHECK = 1
pulldown_type = 1
sourcetype=listener`

[source::...\\DocumentCacheListener\\DEFAULT\\*log]
NO_BINARY_CHECK = 1
pulldown_type = 1
sourcetype=default
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2013 16:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85740#M17813</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-02-27T16:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf - separate monitors for sub-directories</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85741#M17814</link>
      <description>&lt;P&gt;Not really an answer (since I think this is a bug), but here's how I did a workaround for a simillar scenario:&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/126064/bug-in-universal-forwarder-inputsconf-monitor-and-recursive-false/126243"&gt;http://answers.splunk.com/answers/126064/bug-in-universal-forwarder-inputsconf-monitor-and-recursive-false/126243&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2014 18:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-separate-monitors-for-sub-directories/m-p/85741#M17814</guid>
      <dc:creator>elof</dc:creator>
      <dc:date>2014-03-10T18:07:02Z</dc:date>
    </item>
  </channel>
</rss>

