rsyslog-doc icon indicating copy to clipboard operation
rsyslog-doc copied to clipboard

High/low watermark levels to discard logs

Open Ashlanfox opened this issue 3 years ago • 1 comments

Reading the documentation I thought high/low watermark levels could be used to discard logs (see https://www.rsyslog.com/doc/master/whitepapers/reliable_logging.html):

You can configure rsyslog to have high/low watermark levels, when the queue fills past the high watermark, rsyslog will start discarding logs below a specified severity, and stop doing so when it drops below the low watermark level

However this conflicts with rsyslog queue parameters (see https://www.rsyslog.com/doc/master/rainerscript/queue_parameters.html):

queue.highWatermark This applies to disk-assisted queues, only. When the queue fills up to this number of messages, the queue begins to spool messages to disk. Please note that this should not happen as part of usual processing, because disk queue mode is very considerably slower than in-memory queue mode. Going to disk should be reserved for cases where an output action destination is offline for some period.

Is one part of the documentation faulty or did I miss something ?

Ashlanfox avatar Jul 28 '22 19:07 Ashlanfox

there are two types of watermarks

  1. the level at which it will start putting messages in the disk queue instead of memory

  2. the level at which it will start throwing away messages (with modifiers to limit severity that is thrown away)

you can configure either of both of these, and it's up to you to set the level to spill to disk to be below the level at which you are throwing away messages (it's still possible for that to be valid with severity limits)

this is very advanced level stuff.

David Lang

On Thu, 28 Jul 2022, Ashlanfox wrote:

Reading the documentation I thought high/low watermark levels could be used to discard logs (see https://www.rsyslog.com/doc/master/whitepapers/reliable_logging.html):

You can configure rsyslog to have high/low watermark levels, when the queue fills past the high watermark, rsyslog will start discarding logs below a specified severity, and stop doing so when it drops below the low watermark level

However this conflicts with rsyslog queue parameters (see https://www.rsyslog.com/doc/master/rainerscript/queue_parameters.html):

queue.highWatermark This applies to disk-assisted queues, only. When the queue fills up to this number of messages, the queue begins to spool messages to disk. Please note that this should not happen as part of usual processing, because disk queue mode is very considerably slower than in-memory queue mode. Going to disk should be reserved for cases where an output action destination is offline for some period.

Is one of the documentation faulty or did I miss something ?

davidelang avatar Oct 11 '22 07:10 davidelang