<div dir="ltr"><div><div>I have now submitted a pull request to merge the "pseudofile" destination, I've now skipped the support for destination file templates, but that can be added later on when a more concrete usecase shows up. It already solves Valentijn's use-case, so it is useful as it is.<br>
<br></div>I wanted to close some of my open branches :)<br><br>-- <br></div>Bazsi<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 1:20 PM, Gergely Nagy <span dir="ltr"><<a href="mailto:algernon@balabit.hu" target="_blank">algernon@balabit.hu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Balazs Scheidler <<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>> writes:<br>
<br>
> - no template in the name of the file<br>
<br>
</div>Would it be possible to have templates in the filename? I can imagine<br>
cases where I'd write to a different file based on message properties.<br>
<br>
Like, if I start to see alerts that stuff is timing out, I'd spin up my<br>
second CPU core (in a laptop setting, where I can't be bothered with<br>
proper monitoring, and want to (ab)use syslog-ng for that task).<br>
<div class="im"><br>
> - name of the driver, right now it is called procfile as it was the<br>
> original use-case, however it works with stuff in /dev too, and might<br>
> work with simple named pipes.<br>
<br>
</div>It also works with stuff in /sys, so procfile() is not a good name. I<br>
would suggest oneshot-file() or simply oneshot().<br>
<div class="im"><br>
> - right now the file must exist and is not created (e.g. it really<br>
> requires an existing file); do we need that?<br>
<br>
</div>I do not think file creation is important in this case.<br>
<div class="im"><br>
> - do we need append mode in some cases<br>
> - whether we need append mode (if we think of general files, this would<br>
> probably be needed)<br>
<br>
</div>I don't think we do.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
|8]<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Bazsi
</div>