<div dir="ltr">Hi Fabien,<div>Thanks your advices.</div><div>It will save users' time to learn a new syntax and my time to write a new parser.</div><div>I agree with you. :)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-17 4:08 GMT+08:00 Fabien Wernli <span dir="ltr"><<a href="mailto:wernli@in2p3.fr" target="_blank">wernli@in2p3.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yilin,<br>
<span class=""><br>
On Thu, Mar 17, 2016 at 12:28:13AM +0800, Yilin Li wrote:<br>
> The new WebSocket destination itself serves as a Websocket Server. It has<br>
> a log messages buffer. The log messages send to the destination are stored<br>
> in the buffer (If the buffer is full then the oldest message is overrided).<br>
> Then other WebSocket clients(Such as a web browser) can directly connect to<br>
> the Websocket Server to subscribe the messsage. This is the pub-sub<br>
> communication that @faxmodem and @Fabien mentioned.<br>
> Then I plan to define some syntax that the WebSocket destination can<br>
> understand to filter the log message. So the WebSocket Client can send its<br>
> filter definition and get the logs it want from the new WebSocket<br>
> destination.<br>
<br>
</span>Sounds good to me!<br>
About the syntax, why not use syslog-ng's syntax, so you don't need to write<br>
a parser yourself? The client would send the filter or even more if needed<br>
(e.g. filter + parser + rewrite rule) and syslog-ng would compile it.<br>
<br>
<br>
<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanks,</div><div>Yilin Li</div><div>-- </div><div>Institute of Software Chinese Academy of Sciences</div></div></div></div></div>
</div>