X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Frsyslog.conf;h=edaea18b0eec7fecd91857348fc94fc99f673530;hb=8d552fd22da25c980e0328593928f1c0fdb15ea0;hp=2028752a9abbf362c8b6fce06ec6ada3a61f7060;hpb=50c21fb525aeb64e9e32a7e88fcfe408f49e3d5c;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/rsyslog.conf b/etc/rsyslog.conf index 2028752..edaea18 100644 --- a/etc/rsyslog.conf +++ b/etc/rsyslog.conf @@ -36,10 +36,21 @@ $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 -############### -#### RULES #### -############### +# 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 #### +####################### # # Log each facility into its own log @@ -75,3 +86,19 @@ 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. +# 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