<div dir="ltr">Hi,<br><br><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 9:17 AM, Fabien Wernli <span dir="ltr"><<a href="mailto:wernli@in2p3.fr" target="_blank">wernli@in2p3.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Tue, Mar 28, 2017 at 09:05:08AM +0200, Budai, László wrote:<br>
> your use case is a special one: you know that you won't need any of the<br>
> messages stored in the diskbuffer after a reload.<br>
<br>
True enough<br>
<br>
> Maybe a --clear-diskqueue/--start-<wbr>with-empty-diskqueue switch to the reload<br>
> command could solve this issue. But with this option you will lose all your<br>
> messages that are stored in the diskqueue. What do you think?<br>
<br>
That would certainly be an improvement :-)<br>
<br>
What would be even better (maybe the "syslog-ng as a command line" could<br>
help) is to apply a filter to what shall be deleted:<br>
<br>
  --purge-queue --drop-from-queue-matching 'not message("spurious message");'<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
but I fear I'm asking for too much ;-D<br>
<br></blockquote><div> </div><div>no, I like your idea :)<br></div><div>If it's not a problem to stop syslog-ng then drop some messages from the diskqueue and then start syslog-ng.<br><br></div><div>L.<br></div></div><br></div></div>