nginx_tcp_proxy_module icon indicating copy to clipboard operation
nginx_tcp_proxy_module copied to clipboard

Documentation for extending this module

Open splitice opened this issue 12 years ago • 1 comments

I am looking to integrate a syslog module with this, howeaver there is no nginx documentation that I can find for creating commands for different protocol blocks, specifically out of that module.

Care to help in the form of some documentation or an example of an integration module.

splitice avatar Feb 02 '13 12:02 splitice

At present, there is no way to add plugin module like the HTTP module, It's not extensible when I designed this module three years ago. But your suggestion is really reasonable. I will think about it after the Chinese New Year.

The only way to add the syslog module is to added it as a patch like the log module, you can added a syslog function here: https://github.com/yaoweibin/nginx_tcp_proxy_module/blob/master/ngx_tcp_session.c#L408. And write similar code like the tcp_log module.

There are several http syslog module/patch: https://github.com/yaoweibin/nginx_syslog_patch http://tengine.taobao.org/document/http_log.html https://github.com/vkholodkov/nginx-syslog-module https://github.com/vkholodkov/nginx-udplog-module

yaoweibin avatar Feb 03 '13 12:02 yaoweibin