[rsyslog-notify] Forum Thread: Re: Queue not working on Mongodb restart - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Fri Feb 7 16:13:02 CET 2014
User: nicktodd
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24196#p24196
Message:
----------
Right. I've got it working now and it would appear that the problem was
that I'd not set some global parameters.
Here's what I added to the top of my conf file:
# location for storing queue files on disk
$WorkDirectory /var/spool/rsyslog
# file name template, also enables disk mode for the memory queue
$MainMsgQueueFileName incoming_queue
# allocate memory dynamically for the queue. Better for handling spikes
$MainMsgQueueType LinkedList
# when to start discarding messages
#$MainMsgQueueDiscardMark 2000000
# limit of messages in the memory queue. When this is reached, it starts to
write to disk
$MainMsgQueueHighWaterMark 2000000
# memory queue size at which it stops writing to the disk
#$MainMsgQueueLowWaterMark 800000
# maximum disk space used for the disk part of the queue
$MainMsgQueueMaxDiskSpace 5g
# how many messages (messages, not bytes!) to hold in memory
$MainMsgQueueSize 8000000
# don't throttle receiving messages when the queue gets full
$MainMsgQueueTimeoutEnqueue 0
# save the queue contents when stopping rsyslog
$MainMsgQueueSaveOnShutdown on
Hope it helps someone!
More information about the rsyslog-notify
mailing list