<?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: Splunk doesn't index new file (after log rotation) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120327#M25009</link>
    <description>&lt;P&gt;Did you try the &lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; option in your inputs.conf?&lt;BR /&gt;
Also have a look at the this &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; it has a fancy script regarding &lt;CODE&gt;tailingProcessor&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2014 13:35:50 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-04-04T13:35:50Z</dc:date>
    <item>
      <title>Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120324#M25006</link>
      <description>&lt;P&gt;Once every hour, our logfiles get copied, then the original file gets truncated and logging continues in a new file. Typical log rotation behavior.&lt;/P&gt;

&lt;P&gt;it usually works fine, but we've noticed that sometimes, the new file doesn't get indexed. In the splunk logs, we see something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-04-2014 00:00:33.282 +0000 INFO  WatchedFile - Logfile truncated while open, original pathname file='/foo/bar/current/logs/BAR.log', will begin reading from start.

04-04-2014 00:00:33.283 +0000 INFO  BatchReader - Will retry path="/foo/bar/current/logs/BAR.log" after deferring for 10000ms, initCRC changed after being queued (before=0x3a97ce94e031dc68, after=0x691fe4ba6a203726).  File growth rate must be higher than indexing or forwarding rate.

04-04-2014 00:00:33.283 +0000 INFO  BatchReader - Removed from queue file='/foo/bar/current/logs/BAR.log'.

04-04-2014 00:00:43.211 +0000 ERROR TailingProcessor - Ignoring path="/foo/bar/current/logs/BAR.log" due to: Bug: tried to check/configure STData processing but have no pending metadata.foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From previous readings, we've changed CHARSET from UTF-8 to AUTO without success. This is our props.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
TRANSFORMS-null = setnull
CHARSET = AUTO

[foo-prod]
NO_BINARY_CHECK = 1
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on how to remedy this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 05:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120324#M25006</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-04-04T05:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120325#M25007</link>
      <description>&lt;P&gt;Hi gozulin,&lt;/P&gt;

&lt;P&gt;take a close look at this doc about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Data/HowLogFileRotationIsHandled"&gt;How Log File Rotation Is Handled&lt;/A&gt;, especially on the &lt;CODE&gt;crcSalt&lt;/CODE&gt; part in the last chapter. &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 06:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120325#M25007</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-04T06:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120326#M25008</link>
      <description>&lt;P&gt;Hi MuS,&lt;/P&gt;

&lt;P&gt;Thanks for the link. I didn't see the smoking gun or potential solution in it:&lt;/P&gt;

&lt;P&gt;256 bytes should be fine. our files have no headers, they are in the syslog format (time stamp, alert level, log msg). &lt;/P&gt;

&lt;P&gt;The BatchReader says it will retry after 10 seconds (BatchReader - Will retry path="/foo/bar/current/logs/BAR.log" after deferring for 10000ms, initCRC changed after being queued (before=0x3a97ce94e031dc68, after=0x691fe4ba6a203726) which seems fine.&lt;/P&gt;

&lt;P&gt;our input file specifies the exact file to be indexed, rather than folder content, so bz2 files shouldn't be an issue.&lt;/P&gt;

&lt;P&gt;Can you elaborate?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120326#M25008</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-04-04T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120327#M25009</link>
      <description>&lt;P&gt;Did you try the &lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; option in your inputs.conf?&lt;BR /&gt;
Also have a look at the this &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; it has a fancy script regarding &lt;CODE&gt;tailingProcessor&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120327#M25009</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-04T13:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120328#M25010</link>
      <description>&lt;P&gt;in addition here is a reply from Splunk Support I got in a similar case:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;There is also a related bug with same error message,which required some code change which will be released through maintenance release 6.0.2, expected to be available very soon. Try that, if it won't address your problem, then get in touch with support.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120328#M25010</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-04T13:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120329#M25011</link>
      <description>&lt;P&gt;Ah, Thanks again! That is useful! will take  a look &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 17:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120329#M25011</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-04-04T17:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120330#M25012</link>
      <description>&lt;P&gt;Just experienced the same issue issues with a clients machine.&lt;/P&gt;

&lt;P&gt;Logrotations have been fine for the last year or so.&lt;/P&gt;

&lt;P&gt;Upgraded Splunk Universal Forwarder last week and got this message lastnight including the "File growth rate must be higher than indexing or forwarding rate."&lt;/P&gt;

&lt;P&gt;Other logfiles rotated fine and continued logging to Splunk&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 00:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120330#M25012</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2014-04-16T00:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't index new file (after log rotation)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120331#M25013</link>
      <description>&lt;P&gt;One other question what purpose/resolution would crcSalt = &lt;SOURCE&gt; have if the log is rotated out and a brand new file of the exact name is created. &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;Wouldn't the crcSalt be identical?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 00:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-index-new-file-after-log-rotation/m-p/120331#M25013</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2014-04-16T00:38:24Z</dc:date>
    </item>
  </channel>
</rss>

