rsyslog: Use another format for forwarding messages.
[matthijs/servers/drsnuggles.git] / etc / rsyslog.conf
index 088b8bbb3411d6f750fee7e64355d64db8cbe263..ab6876b8b1228eadb758bc402c72a37d9880cb34 100644 (file)
@@ -35,6 +35,17 @@ $DirCreateMode 0755
 #
 $IncludeConfig /etc/rsyslog.d/*.conf
 
+# Store any queues here. This directory is not created automatically, so it
+# must already exist!
+$WorkDirectory /var/spool/rsyslog
+
+# Use a (disk-assisted) main queue
+# Use a linked list for queueing
+$MainMsgQueueType LinkedList
+# Name to use for the queue file
+$MainMsgQueueFileName main
+# save in-memory data if rsyslog shuts down
+$MainMsgQueueSaveOnShutdown on
 
 #######################
 #### Local logging ####
@@ -79,5 +90,14 @@ 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.
+# 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_ForwardFormat