On Thu, 18 Jun 2015, Jonny Törnbom wrote:

Hi again,

I'm seeing some issues with outchannel and log rotation. I've got a line
in my config that looks something like:

$outchannel INFO,/info.log,9000,/rotate.sh

where rotate.sh basically just contains:

mv -f info.log info.log.1

In the config I use the outchannel like this:

*.info;*.!warning;kern.none;authpriv.none;auth.none :omfile:$INFO

and everything works with rotating etc _except_ that sometimes I get one
part of _a_ syslog message in the old file, and the rest in the new file.
It's only the first and sometimes the last message in a file that gets
partly written, the cut is not always at the same property either, it
varies.

It's like rsyslog calls the log rotate script before it's done writing
to the log file (I put a sync call first in log rotate script to rule
out fs caching issues, no help.)

I have not seen this issue with 5.8.11. We do not use any async writing
options or so (not that we have enabled atleast) if it's not something
thats on by default, but it shouldn't if I read the docs correctly?

what version are you seeing this issue on. note that the current version is 8.10

David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to