[rsyslog-notify] Forum Thread: buffer data when output file is not writeable - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Tue Jun 21 21:40:24 CEST 2016


User: peterlytx 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26641#p26641

Message: 
----------
Hi,
I'm using rsyslog on an embedded device. On startup, there are no writable
filesystems until the device's battery backup is enabled, after which time
a filesystem is remounted read/write.

I have rsyslog configured to write to a file and of course there are no
logs recorded on startup until the filesystem is mounted read/write. Is it
possible to configure rsyslog to internally buffer logs until the output
file becomes writeable?

One option I have considered is to write the log file to a tmpfs (in-memory
filesystem), then when the log file has reached its maximum size, rotate it
to the non-volatile filesystem. However, there is not always time on device
shutdown to do the log rotation, so data could be lost. Ideally, rsyslog
would always write to the desired log file when it is writeable.


More information about the rsyslog-notify mailing list