<?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: Successfully recurse sub-directories in Windows? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328518#M60958</link>
    <description>&lt;P&gt;i am putting a new answer so i can attach screenshot&lt;BR /&gt;
it works well with Program Files as well&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 16:11:14 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-06-07T16:11:14Z</dc:date>
    <item>
      <title>Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328512#M60952</link>
      <description>&lt;P&gt;I can't find the correct way to recursively monitor sub-directories in Windows for all files ending in .log.&lt;/P&gt;

&lt;P&gt;Can someone please enlighten me with the proper inputs.conf stanza?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328512#M60952</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-06T17:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328513#M60953</link>
      <description>&lt;P&gt;i think you mean to this:&lt;BR /&gt;
example: monitor everything in C:\file\mylogs drive and look for .log extension files&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\file\mylogs\*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;all examples here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Specifyinputpathswithwildcards"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328513#M60953</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-06T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328514#M60954</link>
      <description>&lt;P&gt;That works for c:\file\mylogs\file.log but not for c:\file\mylogs\morelogs\evenmorelogs\file.log&lt;/P&gt;

&lt;P&gt;I understand that recursive=true is the default but it doesn't appear to work in this case.&lt;/P&gt;

&lt;P&gt;I've tried...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\file\mylogs\...\*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with no luck either.&lt;/P&gt;

&lt;P&gt;I've tried...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\file\mylogs\...\]
whitelist=(\.log$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;also with no luck.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328514#M60954</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-06T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328515#M60955</link>
      <description>&lt;P&gt;Also, I see some documentation using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;recursive=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and some showing...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;recurse=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I realize that is also the default but which is correct if hardsetting the option?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:38:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328515#M60955</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-06T18:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328516#M60956</link>
      <description>&lt;P&gt;hello there,&lt;BR /&gt;
so i tested and created a file in: &lt;CODE&gt;C:\Users\adonio\Desktop\ari1\ari2\ari3\ari.log&lt;/CODE&gt;&lt;BR /&gt;
my input.conf is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Users\adonio\Desktop\ari1\...\]
index = test_ari
sourcetype = test_ari
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it captures the data &lt;BR /&gt;
tried as well with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Users\adonio\Desktop\ari1\...\*.log]
index = test_ari
sourcetype = test_ari
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;works just fine&lt;BR /&gt;
please verify your full path to file.&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 13:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328516#M60956</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-07T13:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328517#M60957</link>
      <description>&lt;P&gt;Thanks, I've tried this as well without success.  Do you know if spaces in the path might be a problem? I am looking in the "Program Files" directory and that is the only difference I see.&lt;/P&gt;

&lt;P&gt;Also, can you tell me what version of Forwarder you are using as well as your Splunk installation version please? &lt;/P&gt;

&lt;P&gt;There must be something wonky with my install.&lt;/P&gt;

&lt;P&gt;Thanks, I appreciate it. A LOT.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328517#M60957</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-07T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328518#M60958</link>
      <description>&lt;P&gt;i am putting a new answer so i can attach screenshot&lt;BR /&gt;
it works well with Program Files as well&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328518#M60958</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-07T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328519#M60959</link>
      <description>&lt;P&gt;here is the regular path and path under Program Files:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Program Files\ari1\ari2\ari3\another_test.log
C:\Users\adonio\Desktop\ari1\ari2\ari3\ari.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here are inputs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Users\adonio\Desktop\ari1\...\]
index = test_ari
sourcetype = test_ari

[monitor://C:\Program Files\ari1\...\]
index = test_ari
sourcetype = another_test_ari
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here is a screenshot:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3010iBC6C336096DA4B29/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328519#M60959</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-07T16:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328520#M60960</link>
      <description>&lt;P&gt;Thanks for the confirmation.  I am using the same input so this makes me believe there is something else wrong with my install.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328520#M60960</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-07T16:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328521#M60961</link>
      <description>&lt;P&gt;can you share your full path to file and your inputs.conf?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328521#M60961</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-07T16:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328522#M60962</link>
      <description>&lt;P&gt;Here is my inputs.conf...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Program Files\PaperCut NG\...\*.log]
index = infotech
sourcetype = papercut
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And there are multiple log files under multiple subdirectories that aren't being indexed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328522#M60962</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-07T16:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328523#M60963</link>
      <description>&lt;P&gt;i suspect that there is something in the "PaperCut NG" directory name&lt;BR /&gt;
try to go to explorer all the way to file path, right click on the path and copy it to notepad++ &lt;BR /&gt;
verify the space between PaperCut and NG is really a space.&lt;BR /&gt;
copy the exact path from notepad++ to your inputs.conf&lt;BR /&gt;
replace the sub-directories with ...\&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328523#M60963</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-07T16:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Successfully recurse sub-directories in Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328524#M60964</link>
      <description>&lt;P&gt;The inputs.conf is pushed from our deployment server so it was created using vim and doubtfully has any weird spaces. &lt;/P&gt;

&lt;P&gt;I have edited the file locally and made sure there are no strange spaces or characters. It looks as though it sees the files but just does not index them. I can echo information to the files and I get no results when doing an All Time (Real Time) search on the file.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 20:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Successfully-recurse-sub-directories-in-Windows/m-p/328524#M60964</guid>
      <dc:creator>loatswil</dc:creator>
      <dc:date>2017-06-07T20:18:42Z</dc:date>
    </item>
  </channel>
</rss>

