rsyslog: Enable queuing of log messages.
[matthijs/servers/drsnuggles.git] / etc / rsyslog.conf
index 2028752a9abbf362c8b6fce06ec6ada3a61f7060..ffcfd33c0ffae97980aae2672dff3eea3f4cadb6 100644 (file)
@@ -37,9 +37,9 @@ $DirCreateMode 0755
 $IncludeConfig /etc/rsyslog.d/*.conf
 
 
-###############
-#### RULES ####
-###############
+#######################
+#### Local logging ####
+#######################
 
 #
 # Log each facility into its own log
@@ -75,3 +75,20 @@ local0,local1,local2,\
 # Emergencies are sent to everybody logged in.
 #
 *.emerg                                *
+
+########################
+#### Remote logging ####
+########################
+
+# 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