There is also a shell script which generates a basic destination skeleton. You can find its source on this brach: https://github.com/juhaszviktor/syslog-ng/tree/f/plugin-creator . Check the dev-utils/plugin_skeleton_creator directory and this commit for the usage: https://github.com/juhaszviktor/syslog-ng/commit/89361d4d1817560ce8c90620935... 2016-01-22 11:33 GMT+01:00 Marc Falzon <m@baha.mu>:
Hi Bazsi,
On Friday 22 January 2016 at 11:28, Scheidler, Balázs wrote:
not really, but maybe I would read the "official" modules source code instead. and of course you can ask questions on the mailing list. :)
Yes that's what I've started to do, but a proper documentation is preferable, saves time and avoid confusion ;)
if you want to create a destination, the easiest is to create a threaded destination, where the output is an independent thread, that can use a synchronous API. Of course this is going to be slower than using an asynchronous implementation, but that usually is good enough,
Thank you for the hint. Given my use case (HTTP destination) I think I'm safe to go with an asynchronous implementation since each request is stateless, no connections/locks involved.
m.
On Fri, Jan 22, 2016 at 11:03 AM, Marc Falzon <m@baha.mu (mailto:
m@baha.mu)> wrote:
Hi
Is there any documentation on how to develop new syslog-ng module using the native C API, besides reading the incubator modules source code?
Cheers,
m.
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq