Documentation for extending this module #65

Open
splitice opened this Issue Feb 2, 2013 · 1 comment

Comments

Projects
None yet
2 participants

splitice commented Feb 2, 2013

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.

Owner

yaoweibin commented Feb 3, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment