<?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 Splunk not detecting local files recursively. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315331#M59009</link>
    <description>&lt;P&gt;I am I have a couple hundred log files I pulled from client computers using powershell.  I am experimenting with having Splunk index them.  It was working prior to upgrading to 6.6.&lt;/P&gt;

&lt;P&gt;basically if I monitor a file directly, it works.  But Splunk is not recursing sub-directories.   I have never indexed these files before.  On the &lt;STRONG&gt;data inputs screen&lt;/STRONG&gt; it detects the files, but no events are parsed.  &lt;/P&gt;

&lt;P&gt;I think it has to do with the path of the log files.  Because I am lazy, I copied recursively with a filter, resulting in a long path, e.g. &lt;CODE&gt;C:\splunkdragonlogs\top25828\CCW03310\*****CCW03310*****\AppData\Roaming\Nuance\NaturallySpeaking12&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I use a regex to define the host as the 'user', as you see bolded above.  &lt;/P&gt;

&lt;P&gt;I have tried editing input.conf to say recursive=true although that should be happening anyway.&lt;/P&gt;

&lt;P&gt;any thoughts of things to explore? &lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 23:02:44 GMT</pubDate>
    <dc:creator>millarma</dc:creator>
    <dc:date>2017-08-31T23:02:44Z</dc:date>
    <item>
      <title>Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315331#M59009</link>
      <description>&lt;P&gt;I am I have a couple hundred log files I pulled from client computers using powershell.  I am experimenting with having Splunk index them.  It was working prior to upgrading to 6.6.&lt;/P&gt;

&lt;P&gt;basically if I monitor a file directly, it works.  But Splunk is not recursing sub-directories.   I have never indexed these files before.  On the &lt;STRONG&gt;data inputs screen&lt;/STRONG&gt; it detects the files, but no events are parsed.  &lt;/P&gt;

&lt;P&gt;I think it has to do with the path of the log files.  Because I am lazy, I copied recursively with a filter, resulting in a long path, e.g. &lt;CODE&gt;C:\splunkdragonlogs\top25828\CCW03310\*****CCW03310*****\AppData\Roaming\Nuance\NaturallySpeaking12&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I use a regex to define the host as the 'user', as you see bolded above.  &lt;/P&gt;

&lt;P&gt;I have tried editing input.conf to say recursive=true although that should be happening anyway.&lt;/P&gt;

&lt;P&gt;any thoughts of things to explore? &lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 23:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315331#M59009</guid>
      <dc:creator>millarma</dc:creator>
      <dc:date>2017-08-31T23:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315332#M59010</link>
      <description>&lt;P&gt;I'd start with &lt;CODE&gt;./splunk list inputstatus&lt;/CODE&gt; and check out what your inputs are saying. &lt;/P&gt;

&lt;P&gt;Or check out &lt;CODE&gt;index=_internal source=*splunkd.log ERROR OR WARN&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 03:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315332#M59010</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-09-01T03:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315333#M59011</link>
      <description>&lt;P&gt;1) Please check splunkd.log and find there is any TailingProcessor stanza for your folder when you startup the Splunk&lt;BR /&gt;
e.g.&lt;BR /&gt;
TailingProcessor - Parsing configuration stanza: monitor://xxxx/xxx/xxx&lt;/P&gt;

&lt;P&gt;2) Try to add the '...' and '*' wildcard in the monitor stanza and see it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 09:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315333#M59011</guid>
      <dc:creator>tlam_splunk</dc:creator>
      <dc:date>2017-09-01T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315334#M59012</link>
      <description>&lt;P&gt;Show us your &lt;CODE&gt;inputs.conf&lt;/CODE&gt;.  All of it.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 20:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315334#M59012</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-02T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315335#M59013</link>
      <description>&lt;P&gt;I am OP.  Please find my inputs.conf below.  However you should know that the files are now there.  &lt;/P&gt;

&lt;P&gt;I have done nothing in the  meantime.  Can you help me understand why?  I would hazard a guess that they weren't done indexing the last time I looked.  This makes me think that files do not become searchable until the entire data input has been indexed.  Is that so?  &lt;/P&gt;

&lt;P&gt;How would one know if files were in the process of being indexed?  Thank you all for you help.&lt;/P&gt;

&lt;P&gt;[monitor://C:\splunkdragonlogs\top25sinceJune1]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
host_regex = \w+:\\w+\\w+\\w+\d+\(\w+)&lt;BR /&gt;
index = dgn&lt;BR /&gt;
recurse = true&lt;/P&gt;

&lt;P&gt;[monitor://C:\splunkdragonlogs\top25810*]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
host_regex = \w+:\\w+\\w+\\w+\d+\(\w+)&lt;BR /&gt;
index = dgn&lt;BR /&gt;
sourcetype = dgn&lt;/P&gt;

&lt;P&gt;[monitor://C:\splunkdragonlogs\top25828*]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
host_regex = \w+:\\w+\\w+\\w+\d+\(\w+)&lt;BR /&gt;
index = dgn&lt;BR /&gt;
sourcetype = dgn&lt;/P&gt;

&lt;P&gt;[monitor://C:\dgnlogs\top25828]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
host_regex = \w+:\\w+\\w+\\w+\d+\(\w+)&lt;BR /&gt;
index = dgn&lt;BR /&gt;
sourcetype = dgn&lt;/P&gt;

&lt;P&gt;[monitor://C:\dgnlogs\top25sinceJune1]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
host_regex = \w+:\\w+\\w+\\w+\d+\(\w+)&lt;BR /&gt;
index = dgn&lt;BR /&gt;
sourcetype = dragonlog&lt;/P&gt;

&lt;P&gt;[monitor://C:\dgnlogs\PathDragonLogs]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
host_regex = \w+:\\w+\\w+\\w+\d+\(\w+)&lt;BR /&gt;
index = dgn&lt;BR /&gt;
sourcetype = dgn- clone&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315335#M59013</guid>
      <dc:creator>millarma</dc:creator>
      <dc:date>2017-09-05T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315336#M59014</link>
      <description>&lt;P&gt;Start with &lt;CODE&gt;./splunk list inputstatus&lt;/CODE&gt; and &lt;CODE&gt;./splunk list monitor&lt;/CODE&gt; but the problem is almost certainly that there are too many files to sort through.  One quick way to test is to do &lt;CODE&gt;./splunk restart&lt;/CODE&gt; on your forwarder.  Do most of the files start to catch up and then stop updating?  Somewhere in the "thousands" of files, a forwarder will take so long sorting through and keeping track of everything that it cannot keep up with the actual task of forwarding.  Usually the solution is simple: make sure that your housekeeping design is deleting or archiving files that are no longer going to change so that they disappear form the places Splunk is monitoring.  If that cannot be done (the files must stay in place), then you can use this trick (be sure to &lt;CODE&gt;UpVote&lt;/CODE&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/309910/how-to-monitor-a-folder-for-newest-files-only-file.html"&gt;https://answers.splunk.com/answers/309910/how-to-monitor-a-folder-for-newest-files-only-file.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also check &lt;CODE&gt;inodes&lt;/CODE&gt;; your &lt;CODE&gt;splunk&lt;/CODE&gt; user should probably be running &lt;CODE&gt;ulimit unlimited&lt;/CODE&gt; (or something quite large).  This can also cause inability to handle large numbers of files and directories.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2017 06:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315336#M59014</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-10T06:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not detecting local files recursively.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315337#M59015</link>
      <description>&lt;P&gt;thank you.  I think this was the issue.  There were thousands of extra directories that , while empty, would keep the tailingprocessor busy.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 15:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-detecting-local-files-recursively/m-p/315337#M59015</guid>
      <dc:creator>millarma</dc:creator>
      <dc:date>2017-09-11T15:06:57Z</dc:date>
    </item>
  </channel>
</rss>

