From 05a50a2e29cf794127b71d136da7816ad391fe7a Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 5 May 2009 15:07:22 +0200 Subject: [PATCH] rsyslog: Enable queuing of log messages. This prevents messages from getting lost when the log vserver is temporarily unavailable. --- etc/rsyslog.conf | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/etc/rsyslog.conf b/etc/rsyslog.conf index a3076b2..ffcfd33 100644 --- a/etc/rsyslog.conf +++ b/etc/rsyslog.conf @@ -80,5 +80,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 -- 2.30.2