From: Matthijs Kooijman Date: Tue, 5 May 2009 13:07:22 +0000 (+0200) Subject: rsyslog: Enable queuing of log messages. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=e006df102382618400410b2e67430fb81eb93d97;p=matthijs%2Fservers%2Fdrsnuggles.git rsyslog: Enable queuing of log messages. This prevents messages from getting lost when the log vserver is temporarily unavailable. --- diff --git a/etc/rsyslog.conf b/etc/rsyslog.conf index 088b8bb..7b95903 100644 --- a/etc/rsyslog.conf +++ b/etc/rsyslog.conf @@ -79,5 +79,15 @@ local0,local1,local2,\ #### Remote logging #### ######################## -# Send all log entries to the log vserver -*.* :omrelp:log:514;RSYSLOG_SyslogProtocol23Format +# Send all log entries to the log vserver, but queue them in memory as well as +# on disk if needed. +$WorkDirectory /var/spool/rsyslog +# Use a linked list for queueing +$ActionQueueType LinkedList +# Name to use for the queue file +$ActionQueueFileName remote +# infinite retries on insert failure +$ActionResumeRetryCount -1 +# save in-memory data if rsyslog shuts down +$ActionQueueSaveOnShutdown on +*.* @@log;RSYSLOG_SyslogProtocol23Format