[syslog-ng] syslog-ng buffer and reload

Fabien Wernli wernli at in2p3.fr
Tue Mar 28 07:17:36 UTC 2017


Hi,

On Tue, Mar 28, 2017 at 09:05:08AM +0200, Budai, László wrote:
> your use case is a special one: you know that you won't need any of the
> messages stored in the diskbuffer after a reload.

True enough

> Maybe a --clear-diskqueue/--start-with-empty-diskqueue switch to the reload
> command could solve this issue. But with this option you will lose all your
> messages that are stored in the diskqueue. What do you think?

That would certainly be an improvement :-)

What would be even better (maybe the "syslog-ng as a command line" could
help) is to apply a filter to what shall be deleted:

  --purge-queue --drop-from-queue-matching 'not message("spurious message");'

but I fear I'm asking for too much ;-D



More information about the syslog-ng mailing list