[syslog-ng] [GSOC]Some questions about the project:WebSocket for syslog-ng
Fabien Wernli
wernli at in2p3.fr
Wed Mar 16 21:08:01 CET 2016
Hi Yilin,
On Thu, Mar 17, 2016 at 12:28:13AM +0800, Yilin Li wrote:
> The new WebSocket destination itself serves as a Websocket Server. It has
> a log messages buffer. The log messages send to the destination are stored
> in the buffer (If the buffer is full then the oldest message is overrided).
> Then other WebSocket clients(Such as a web browser) can directly connect to
> the Websocket Server to subscribe the messsage. This is the pub-sub
> communication that @faxmodem and @Fabien mentioned.
> Then I plan to define some syntax that the WebSocket destination can
> understand to filter the log message. So the WebSocket Client can send its
> filter definition and get the logs it want from the new WebSocket
> destination.
Sounds good to me!
About the syntax, why not use syslog-ng's syntax, so you don't need to write
a parser yourself? The client would send the filter or even more if needed
(e.g. filter + parser + rewrite rule) and syslog-ng would compile it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2801 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20160316/3d92212b/attachment-0001.bin
More information about the syslog-ng
mailing list