<?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: How to troubleshoot why a file in monitored folder is not being indexed in Splunk Light Free 6.3.0? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218152#M42905</link>
    <description>&lt;P&gt;crcSalt = &lt;BR /&gt;
 This worked for me....Great!!&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 09:55:37 GMT</pubDate>
    <dc:creator>BansodeSantosh</dc:creator>
    <dc:date>2017-05-08T09:55:37Z</dc:date>
    <item>
      <title>How to troubleshoot why a file in monitored folder is not being indexed in Splunk Light Free 6.3.0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218148#M42901</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I’ve been using Splunk Light Free Version 6.3.0 for about a month on Mac OS X, and it’s been working well, monitoring 16 modestly-sized log files updated once per day, taken from 3 different websites.&lt;/P&gt;

&lt;P&gt;Here’s the relevant part of inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///Users/user/backup-log]
disabled = false
host = user.com
blacklist = \/\.[^\/]*$
sourcetype=access_combined
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Recently I noticed a newly-added log file (#17) in a monitored folder wasn’t being indexed. At first thinking there may be a limit on the number of sources in the free version, I removed a couple of older log files from the monitored folder, then cleaned out all the index data and reindexed everything:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ /Applications/Splunk/bin/splunk stop
$ /Applications/Splunk/bin/splunk clean eventdata
$ /Applications/Splunk/bin/splunk start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it simply indexed 14 files instead of 16, still omitting the newly-added log file.&lt;/P&gt;

&lt;P&gt;So then I tried renaming the newly-added log file and reindexing everything. Interestingly, the renamed file got indexed, but some &lt;STRONG&gt;other&lt;/STRONG&gt; file was no longer indexed (and it was being indexed before).&lt;/P&gt;

&lt;P&gt;Any ideas out there on how to fix this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Greg&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218148#M42901</guid>
      <dc:creator>gbeddow</dc:creator>
      <dc:date>2015-11-03T19:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a file in monitored folder is not being indexed in Splunk Light Free 6.3.0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218149#M42902</link>
      <description>&lt;P&gt;Hi gbeddow,&lt;/P&gt;

&lt;P&gt;check &lt;CODE&gt;splunkd.log&lt;/CODE&gt; or &lt;CODE&gt;index=_internal&lt;/CODE&gt; for any message related to the missing file. Do some reading here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/HowLogFileRotationIsHandled"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/HowLogFileRotationIsHandled&lt;/A&gt; and learn how Splunk uses the file header to do CRC; maybe you have to adjust &lt;CODE&gt;initCrcLength&lt;/CODE&gt; in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/Inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Check the file permission of this missing field, the user running Splunk should be able to read it&lt;/LI&gt;
&lt;LI&gt;Make sure the &lt;CODE&gt;blacklist&lt;/CODE&gt; is not matching the missing file&lt;/LI&gt;
&lt;LI&gt;Have a look at this superb blog &lt;A href="http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/"&gt;http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/&lt;/A&gt; to learn more about the &lt;CODE&gt;TailingProcess&lt;/CODE&gt; &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218149#M42902</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-03T19:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a file in monitored folder is not being indexed in Splunk Light Free 6.3.0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218150#M42903</link>
      <description>&lt;P&gt;Hi MuS,&lt;/P&gt;

&lt;P&gt;I looked at splunkd.log and found this from when Splunk first saw the newly-added log file in question:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-01-2015 06:56:44.400 -0800 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=&amp;lt;some-file-name&amp;gt;).  Last time we saw this initcrc, filename was different.  You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source.  Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I looked at these:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/HowLogFileRotationIsHandled"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/HowLogFileRotationIsHandled&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/Monitorfilesanddirectorieswithinputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/Monitorfilesanddirectorieswithinputs.conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So I added this to each stanza in inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then reindexed everything and that took care of the problem.&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;

&lt;P&gt;--Greg&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 20:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218150#M42903</guid>
      <dc:creator>gbeddow</dc:creator>
      <dc:date>2015-11-03T20:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a file in monitored folder is not being indexed in Splunk Light Free 6.3.0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218151#M42904</link>
      <description>&lt;P&gt;Watch out when using &lt;CODE&gt;crcSalt =&lt;/CODE&gt; this can give you double indexed events! If you encounter double indexed events, change the &lt;CODE&gt;initCrcLen&lt;/CODE&gt; and discard &lt;CODE&gt;crcSalt =&lt;/CODE&gt; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 20:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218151#M42904</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-03T20:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a file in monitored folder is not being indexed in Splunk Light Free 6.3.0?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218152#M42905</link>
      <description>&lt;P&gt;crcSalt = &lt;BR /&gt;
 This worked for me....Great!!&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 09:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-file-in-monitored-folder-is-not-being/m-p/218152#M42905</guid>
      <dc:creator>BansodeSantosh</dc:creator>
      <dc:date>2017-05-08T09:55:37Z</dc:date>
    </item>
  </channel>
</rss>

