<?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: Why is splunk not indexing new files in monitered folder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84790#M17616</link>
    <description>&lt;P&gt;do you get any errors in splunkd.log?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2013 12:39:46 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2013-01-11T12:39:46Z</dc:date>
    <item>
      <title>Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84787#M17613</link>
      <description>&lt;P&gt;This is on a Windows box to a windows network location. I have set up an input on a folder located on a network drive with the following in my inputs.conf&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor://\\myserver\tempfolder$\Logs\logfileprefix*]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
host = myserver&lt;BR /&gt;
sourcetype = my-source-type&lt;BR /&gt;
index = main&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However no logs are getting indexed. I have already checked that the splunk account can access this folder.&lt;/P&gt;

&lt;P&gt;EDIT 2: In the splunk management page you can see that it has found hundreds of files to index. But they cannot be found when searching.&lt;/P&gt;

&lt;P&gt;EDIT: I can index the files using splunks oneshot command&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk add oneshot "\\myserver\tempfolder$\Logs\logfileprefix.log" -sourcetype "my-source-type" -index "main" -host "%host%"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 09:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84787#M17613</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-11T09:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84788#M17614</link>
      <description>&lt;P&gt;Hi jameshgibson&lt;/P&gt;

&lt;P&gt;does the account running splunkd have network access? By default this is not allowed for system services, so you have to enable this first.&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 10:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84788#M17614</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-11T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84789#M17615</link>
      <description>&lt;P&gt;Good idea but I assume that as splunk oneshot works then it must be able to access it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84789#M17615</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-11T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84790#M17616</link>
      <description>&lt;P&gt;do you get any errors in splunkd.log?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 12:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84790#M17616</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-11T12:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84791#M17617</link>
      <description>&lt;P&gt;getting a lot of warnings for: 01-11-2013 10:00:43.134 +0000 WARN  AdminHandler:AuthenticationHandler - Denied session token for user: splunk-system-user&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 12:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84791#M17617</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-11T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84792#M17618</link>
      <description>&lt;P&gt;this is related to authentication between search heads and search peers and not file monitoring -&amp;gt; &lt;A href="http://splunk-base.splunk.com/answers/27523/splunkdlog-denied-session-token-for-user-splunk-system-user"&gt;http://splunk-base.splunk.com/answers/27523/splunkdlog-denied-session-token-for-user-splunk-system-user&lt;/A&gt;&lt;BR /&gt;
but check this out &lt;A href="http://splunk-base.splunk.com/answers/58727/unc-path-with-sign"&gt;http://splunk-base.splunk.com/answers/58727/unc-path-with-sign&lt;/A&gt; looks like the $ is your problem&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 12:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84792#M17618</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-11T12:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84793#M17619</link>
      <description>&lt;P&gt;I saw that but from the answer I can't see anything he changed to fix it. Also the answer directly below seems to suggest that it is not the case.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 14:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84793#M17619</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-11T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84794#M17620</link>
      <description>&lt;P&gt;ok then quick and dirty test, use the unc path without $ and see if it works. If yes; you can file a case and ask support how this must be done with a hidden unc share&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 14:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84794#M17620</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-11T14:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84795#M17621</link>
      <description>&lt;P&gt;found this one, where the solution was to use a different user to run splunk -&amp;gt; &lt;A href="http://splunk-base.splunk.com/answers/4614/how-do-i-monitor-a-unc-path"&gt;http://splunk-base.splunk.com/answers/4614/how-do-i-monitor-a-unc-path&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 14:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84795#M17621</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-11T14:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84796#M17622</link>
      <description>&lt;P&gt;Check if your file have a static header, and are skipped because they are considered as duplicates. Test by adding a comment on the first line, and look at  the crc options in inputs.conf&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84796#M17622</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-11T16:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84797#M17623</link>
      <description>&lt;P&gt;the files not indexed are completely new with a different name and timestamp etc. so I dont think this is the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84797#M17623</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-11T16:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84798#M17624</link>
      <description>&lt;P&gt;gave changing the user account a bash, but no change unfortunatly&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84798#M17624</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-11T16:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84799#M17625</link>
      <description>&lt;P&gt;ok, so this is an input misconfigured, or a permission issue. &lt;BR /&gt;
Or a forwarding issue. (to check  if the forwarding if working for other files , search on the indexer for index=_internal host=myfowarder)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 17:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84799#M17625</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-11T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84800#M17626</link>
      <description>&lt;P&gt;turns out this was nothing to do with any of the characters or permissions. For some reason the ending of logfileprefix* was causing the problem (despite working on non network folders). I swapped this to use a whitelist instead...which didn't work. Finally I added a blacklist which did.&lt;/P&gt;

&lt;P&gt;The final working config looks similar to:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor://\\myserver\tempfolder$\Logs]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
sourcetype = mysourcetype&lt;BR /&gt;
whitelist = &lt;BR /&gt;
blacklist = (something|BLAH\-[0-9]+)&lt;BR /&gt;
index = tmp&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2013 15:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84800#M17626</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-28T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk not indexing new files in monitered folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84801#M17627</link>
      <description>&lt;P&gt;I have the same problem. So I add a fake header on my new files. And Splunk start ingesting the file!! Thanks for your tips!!!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 05:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-splunk-not-indexing-new-files-in-monitered-folder/m-p/84801#M17627</guid>
      <dc:creator>season88481</dc:creator>
      <dc:date>2016-06-08T05:49:27Z</dc:date>
    </item>
  </channel>
</rss>

