[syslog-ng] Module development guide

Marc Falzon m at baha.mu
Fri Jan 22 11:42:40 CET 2016


On Friday 22 January 2016 at 11:35, Tibor Benke wrote:

> 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/89361d4d1817560ce8c906209355f1b737a28010


Awesome, thank you!

m.
  
>  
> 2016-01-22 11:33 GMT+01:00 Marc Falzon <m at baha.mu (mailto:m at 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 at baha.mu (mailto:m at baha.mu) (mailto:m at 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
>  
>  
> ______________________________________________________________________________
> 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





More information about the syslog-ng mailing list