<?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 6.6.3 issues reading syslog files after syslog rolls a file and restarts. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352807#M64645</link>
    <description>&lt;P&gt;We log just about everything to syslog and have Splunk read the syslog files. This has been working forever until we upgraded from 6.6.1 to 6.6.3. &lt;/P&gt;

&lt;P&gt;Now, when syslog rolls a file, splunkd doesn't start reading the new file until we restart spunk.&lt;/P&gt;

&lt;P&gt;/logs/file.log rolls to /logs/file.log.1&lt;BR /&gt;
The new file is /logs/file.log&lt;/P&gt;

&lt;P&gt;Splunk doesn't read either of those until the restart.&lt;/P&gt;

&lt;P&gt;Anyone else seeing this?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 13:07:45 GMT</pubDate>
    <dc:creator>dfronck</dc:creator>
    <dc:date>2017-11-06T13:07:45Z</dc:date>
    <item>
      <title>6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352807#M64645</link>
      <description>&lt;P&gt;We log just about everything to syslog and have Splunk read the syslog files. This has been working forever until we upgraded from 6.6.1 to 6.6.3. &lt;/P&gt;

&lt;P&gt;Now, when syslog rolls a file, splunkd doesn't start reading the new file until we restart spunk.&lt;/P&gt;

&lt;P&gt;/logs/file.log rolls to /logs/file.log.1&lt;BR /&gt;
The new file is /logs/file.log&lt;/P&gt;

&lt;P&gt;Splunk doesn't read either of those until the restart.&lt;/P&gt;

&lt;P&gt;Anyone else seeing this?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352807#M64645</guid>
      <dc:creator>dfronck</dc:creator>
      <dc:date>2017-11-06T13:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: 6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352808#M64646</link>
      <description>&lt;P&gt;Do you see any error in Splunkd.log?&lt;/P&gt;

&lt;P&gt;Following link has good steps to debug this type of issues.&lt;BR /&gt;
&lt;A href="https://wiki.splunk.com/Community:Troubleshooting_Monitor_Inputs"&gt;https://wiki.splunk.com/Community:Troubleshooting_Monitor_Inputs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352808#M64646</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-11-06T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: 6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352809#M64647</link>
      <description>&lt;P&gt;I enabled debug for these 3 process and found what I suspected. &lt;/P&gt;

&lt;P&gt;Splunk keeps monitoring the old log file even though there's a new /logs/file.log and the old file has been renamed to /logs/file.log.1. &lt;/P&gt;

&lt;P&gt;It keeps using the old file descriptor and offset until you restart splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-06-2017 13:06:38.551 -0500 DEBUG TailReader - Enqueued file=/logs/file.log in tailreader0
11-06-2017 13:06:38.551 -0500 DEBUG TailReader - Start reading file="/logs/file.log" in tailreader0 thread
11-06-2017 13:06:38.551 -0500 DEBUG TailReader -   Will attempt to read file: /logs/file.log from existing fd.
11-06-2017 13:06:38.551 -0500 DEBUG TailReader -   Will attempt to read file: /logs/file.log from existing fd.
11-06-2017 13:06:38.551 -0500 DEBUG TailReader - About to read data (Reusing existing fd for file='/logs/file.log').
11-06-2017 13:06:38.551 -0500 DEBUG TailReader - About to read data (Reusing existing fd for file='/logs/file.log').
11-06-2017 13:06:38.551 -0500 DEBUG WatchedFile - seeking /logs/file.log to off=527773500
11-06-2017 13:06:38.551 -0500 DEBUG WatchedFile - Reached EOF: fname=/logs/file.log fishstate=key=0x6284c567d04aff4f sptr=527773500 scrc=0x876eab63e055a62d fnamecrc=0x864d9a294109368b modtime=1509991598
11-06-2017 13:06:38.551 -0500 DEBUG TailReader - Finished reading file='/logs/file.log' in tailreader0 thread, disposition=NO_DISPOSITION, deferredBy=3.000
11-06-2017 13:06:38.551 -0500 DEBUG TailReader - Defering notification for file=/logs/file.log by 3.000ms
11-06-2017 13:06:41.385 -0500 DEBUG TailingProcessor - Deferred notification for path='/logs/file.log'.

11-06-2017 13:06:41.385 -0500 DEBUG TailReader - Enqueued file=/logs/file.log in tailreader0
11-06-2017 13:06:41.385 -0500 DEBUG TailReader - Enqueued file=/logs/file.log in tailreader0
11-06-2017 13:06:41.387 -0500 DEBUG TailReader - Start reading file="/logs/file.log" in tailreader0 thread
11-06-2017 13:06:41.387 -0500 DEBUG TailReader -   Will attempt to read file: /logs/file.log from existing fd.
11-06-2017 13:06:41.389 -0500 DEBUG TailReader - About to read data (Reusing existing fd for file='/logs/file.log').
11-06-2017 13:06:41.389 -0500 DEBUG TailReader - About to read data (Reusing existing fd for file='/logs/file.log').
11-06-2017 13:06:41.389 -0500 DEBUG WatchedFile - seeking /logs/file.log to off=527773500
11-06-2017 13:06:41.389 -0500 DEBUG WatchedFile - Reached EOF: fname=/logs/file.log fishstate=key=0x6284c567d04aff4f sptr=527773500 scrc=0x876eab63e055a62d fnamecrc=0x864d9a294109368b modtime=1509991601
11-06-2017 13:06:41.389 -0500 DEBUG TailReader - Finished reading file='/logs/file.log' in tailreader0 thread, disposition=NO_DISPOSITION, deferredBy=3.000
11-06-2017 13:06:41.389 -0500 DEBUG TailReader - Finished reading file='/logs/file.log' in tailreader0 thread, disposition=NO_DISPOSITION, deferredBy=3.000
11-06-2017 13:06:41.389 -0500 DEBUG TailReader - Defering notification for file=/logs/file.log by 3.000ms
11-06-2017 13:06:44.220 -0500 DEBUG TailingProcessor - Deferred notification for path='/logs/file.log'.
11-06-2017 13:06:44.220 -0500 DEBUG TailingProcessor - Deferred notification for path='/logs/file.log'.

11-06-2017 13:06:44.220 -0500 DEBUG TailReader - Enqueued file=/logs/file.log in tailreader0
11-06-2017 13:06:44.220 -0500 DEBUG TailReader - Enqueued file=/logs/file.log in tailreader0
11-06-2017 13:06:44.220 -0500 DEBUG TailReader - Start reading file="/logs/file.log" in tailreader0 thread
11-06-2017 13:06:44.220 -0500 DEBUG TailReader - Start reading file="/logs/file.log" in tailreader0 thread
11-06-2017 13:06:44.221 -0500 DEBUG TailReader -   Will attempt to read file: /logs/file.log from existing fd.
11-06-2017 13:06:44.221 -0500 DEBUG TailReader - About to read data (Reusing existing fd for file='/logs/file.log').
11-06-2017 13:06:44.221 -0500 DEBUG TailReader - About to read data (Reusing existing fd for file='/logs/file.log').
11-06-2017 13:06:44.221 -0500 DEBUG WatchedFile - seeking /logs/file.log to off=527773500
11-06-2017 13:06:44.221 -0500 DEBUG WatchedFile - Reached EOF: fname=/logs/file.log fishstate=key=0x6284c567d04aff4f sptr=527773500 scrc=0x876eab63e055a62d fnamecrc=0x864d9a294109368b modtime=1509991604
11-06-2017 13:06:44.221 -0500 DEBUG WatchedFile - Reached EOF: fname=/logs/file.log fishstate=key=0x6284c567d04aff4f sptr=527773500 scrc=0x876eab63e055a62d fnamecrc=0x864d9a294109368b modtime=1509991604
11-06-2017 13:06:44.221 -0500 DEBUG TailReader - Finished reading file='/logs/file.log' in tailreader0 thread, disposition=NO_DISPOSITION, deferredBy=3.000
11-06-2017 13:06:44.221 -0500 DEBUG TailReader - Defering notification for file=/logs/file.log by 3.000ms
11-06-2017 13:06:47.052 -0500 DEBUG TailingProcessor - Deferred notification for path='/logs/file.log'.
11-06-2017 13:06:47.052 -0500 DEBUG TailingProcessor - Deferred notification for path='/logs/file.log'.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;category.TailingProcessor=DEBUG&lt;BR /&gt;
category.WatchedFile=DEBUG&lt;BR /&gt;
category.TailReader=DEBUG&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 18:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352809#M64647</guid>
      <dc:creator>dfronck</dc:creator>
      <dc:date>2017-11-06T18:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: 6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352810#M64648</link>
      <description>&lt;P&gt;We didn't seem to have this issue before we upgraded from 6.6.1 to 6.6.3. Maybe it was an issue but not as bad but I'm pretty sure this is new with 6.6.3.&lt;/P&gt;

&lt;P&gt;There are no errors in the logs. In debug, I can see that the file rotates and splunk keeps looking at the .log.1 file descriptor and never changing offset.&lt;/P&gt;

&lt;P&gt;I did some more testing. Configured splunk to monitor .log*. It still just looks at the old .log.1 file. &lt;STRONG&gt;It doesn't seem to care about the brand new .log file that's getting a ton of new data!&lt;/STRONG&gt; It doesn't seem to be monitoring the directory for changes.&lt;/P&gt;

&lt;P&gt;Anyway, the current work around that guarantees a consistent loss of data is to use copytruncate. Splunk keeps monitoring the same file so I don't lose a ton of logs anymore, just the 3 seconds that occur when the file gets truncated before splunk has re-read the new logs.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352810#M64648</guid>
      <dc:creator>dfronck</dc:creator>
      <dc:date>2020-09-29T16:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: 6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352811#M64649</link>
      <description>&lt;P&gt;We have the same issue with Splunk 6.6.8. Is there any solution now?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 09:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352811#M64649</guid>
      <dc:creator>Paul1896</dc:creator>
      <dc:date>2019-01-07T09:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: 6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352812#M64650</link>
      <description>&lt;P&gt;Sorry I can't help other than to say that upgrading from 6.6.3 to 6.6.4 fixed it for us. Now we're on 7.1.4 with a whole bunch of new issues!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 02:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352812#M64650</guid>
      <dc:creator>dfronck</dc:creator>
      <dc:date>2019-01-08T02:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: 6.6.3 issues reading syslog files after syslog rolls a file and restarts.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352813#M64651</link>
      <description>&lt;P&gt;Thanks @dfronck , we'll update our version today and then check it again.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:16:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/6-6-3-issues-reading-syslog-files-after-syslog-rolls-a-file-and/m-p/352813#M64651</guid>
      <dc:creator>Paul1896</dc:creator>
      <dc:date>2019-01-15T08:16:50Z</dc:date>
    </item>
  </channel>
</rss>

