<?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: Log files not being indexed in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340272#M8169</link>
    <description>&lt;P&gt;Hi, have you managed to resolve this? I am having the same problem with logs being shown as indexed, licence used for them but unable to actually see them in Splunk. &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2019 12:02:37 GMT</pubDate>
    <dc:creator>buckiboy</dc:creator>
    <dc:date>2019-11-15T12:02:37Z</dc:date>
    <item>
      <title>Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340263#M8160</link>
      <description>&lt;P&gt;I have log files that are not being indexed by Splunk, and don't show up in the search. In the same folder, other files are being indexed fine. The only difference I could find between these files is that the ones that are not being indexed have some tab and new line characters, i.e. \t, \n, \r&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 00:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340263#M8160</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-06T00:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340264#M8161</link>
      <description>&lt;P&gt;Try adding this to props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NO_BINARY_CHECK = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Mar 2017 05:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340264#M8161</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-06T05:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340265#M8162</link>
      <description>&lt;P&gt;I have tried it - add the line, waited for 10 mins. Not solving the issue.&lt;BR /&gt;
Do I need reboot my server?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 18:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340265#M8162</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-06T18:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340266#M8163</link>
      <description>&lt;P&gt;To determine why files may not be ingested, try one of the following:&lt;/P&gt;

&lt;P&gt;1- Check the inputstatus command on the Splunk instance that will be ingesting the file&lt;/P&gt;

&lt;P&gt;[splunker@n00bserver bin]$ ./splunk list inputstatus&lt;/P&gt;

&lt;P&gt;You may want to send the output to a file as the output can be large. If the file was read it will look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/home/splunker/splunk/var/log/splunk/splunk.log
        file position = 503
        file size = 503
        parent = $SPLUNK_HOME/var/log/splunk
        percent = 100.00
        type = finished reading
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If ignored it may look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    /home/splunker/splunk/etc/apps/SA-Utils/appserver/modules/SOLNTreeNav/SOLNTreeNav.css
        parent = $SPLUNK_HOME/etc/*apps/....css*
        type = ignored file (crc conflict, needs crcSalt)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2- Check Splunk internal logs&lt;/P&gt;

&lt;P&gt;try searching:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal  TailReader ERROR OR WARN 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal /path/to/your/file.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Mar 2017 00:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340266#M8163</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-07T00:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340267#M8164</link>
      <description>&lt;P&gt;You need to restart splunk, yes.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340267#M8164</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-07T21:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340268#M8165</link>
      <description>&lt;P&gt;Ya, I restarted, still not being indexed.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 22:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340268#M8165</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-07T22:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340269#M8166</link>
      <description>&lt;P&gt;So I found various unprocessed files logged with "type = ignored file (crc conflict, needs crcSalt)". What to do in this situation?&lt;/P&gt;

&lt;P&gt;I also found some files logged with "type = finished reading" but their contents are still not showing in Splunk search.&lt;/P&gt;

&lt;P&gt;Which log file should I search further in? I see a bunch of files under $SPLUNK_HOME/var/log/splunk/, is that the right place to look?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 00:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340269#M8166</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-08T00:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340270#M8167</link>
      <description>&lt;P&gt;When Splunk finds a file it reads the first 256 bytes of the file and computes a hash as a way of determining whether we have already read the file.&lt;/P&gt;

&lt;P&gt;See here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Howlogfilerotationishandled"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Howlogfilerotationishandled&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In your case the file may have large headers or a common preamble in the first 256 bytes that causes Splunk to believe it has seen the file already.&lt;/P&gt;

&lt;P&gt;You should examine the file and if indeed this is a unique file you can add crcsalt to the inputs.conf for this file to have splunk add the path to the crc check as a way to ensure Splunk knows this is a different file...See monitor syntax and examples here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Monitorfilesanddirectorieswithinputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Monitorfilesanddirectorieswithinputs.conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It is also possible to tell Splunk to extend the check further than 256 so it can reach the unique data...see crcInitLength in the first link i provided.&lt;/P&gt;

&lt;P&gt;You will want to be careful with these settings if you are using wildcards in yout directory monitors...generally you only want to apply explicitly to certain files to avoid duplicate ingestion&lt;/P&gt;

&lt;P&gt;As for the files that are finished reading yet arent in Splunk, have you searched All time for the source path?&lt;/P&gt;

&lt;P&gt;As for the logs, yes that is a valuable directory with many useful logs. Splunk ingests many of them by default so that you can search them from the gui, you can see much of what the commands I provided showed us by searching &lt;CODE&gt;index=_internal sourcetype=splunkd tailreader&lt;/CODE&gt; but at this point we just need to analyze the files failing crc check and adjust the inputs and figure out where the data from the finished files are &lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 05:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340270#M8167</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-08T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340271#M8168</link>
      <description>&lt;P&gt;You will want to roll that setting back. Better to find root cause before altering settings.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 05:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340271#M8168</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-08T05:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340272#M8169</link>
      <description>&lt;P&gt;Hi, have you managed to resolve this? I am having the same problem with logs being shown as indexed, licence used for them but unable to actually see them in Splunk. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 12:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340272#M8169</guid>
      <dc:creator>buckiboy</dc:creator>
      <dc:date>2019-11-15T12:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340273#M8170</link>
      <description>&lt;P&gt;Are these in the &lt;CODE&gt;name&lt;/CODE&gt; of the files or the &lt;CODE&gt;contents&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 04:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340273#M8170</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-18T04:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Log files not being indexed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340274#M8171</link>
      <description>&lt;P&gt;There are many reasons for this including:&lt;/P&gt;

&lt;P&gt;Files are presumed to be already forwarded; this is the &lt;CODE&gt;type = ignored file (crc conflict, needs crcSalt)&lt;/CODE&gt; problem and the solution is to add this to the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; on the UF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It could be that the timestamps are too old (change &lt;CODE&gt;MAX_DAYS_AGO&lt;/CODE&gt;) or that they are being thrown into the future by accident so they are not showing up in your search.  To test for this, set your &lt;CODE&gt;Time picker&lt;/CODE&gt; to &lt;CODE&gt;Advanced&lt;/CODE&gt; and &lt;CODE&gt;earliest&lt;/CODE&gt; to &lt;CODE&gt;0&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; to &lt;CODE&gt;@d+10y&lt;/CODE&gt; and use &lt;CODE&gt;_index_earliest=-30d _index_latest=now&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 04:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Log-files-not-being-indexed/m-p/340274#M8171</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-18T04:12:00Z</dc:date>
    </item>
  </channel>
</rss>

