projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c9854d
)
rsyslog: Enable queuing of log messages.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 5 May 2009 13:07:22 +0000
(15:07 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 5 May 2009 13:07:22 +0000
(15:07 +0200)
This prevents messages from getting lost when the log vserver is
temporarily unavailable.
etc/rsyslog.conf
patch
|
blob
|
history
diff --git
a/etc/rsyslog.conf
b/etc/rsyslog.conf
index 088b8bbb3411d6f750fee7e64355d64db8cbe263..7b959032dc819138bbf671c2946183f768a69fd1 100644
(file)
--- a/
etc/rsyslog.conf
+++ b/
etc/rsyslog.conf
@@
-79,5
+79,15
@@
local0,local1,local2,\
#### Remote logging ####
########################
#### 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