15.12.2013 14:36, Radu Gheorghe:
I'm thinking it might be useful to make "official connectors" for other
languages. For example, some module (thinking about Python now, but the
idea should work everywhere) that would read a batch of JSONs from the
command line and put them in some small internal queue. Then, there could
be an interface that will allow programs using this module to:
a) change those messages and do whatever, like change the date
b) pull a batch and push it somewhere


All this can be done even with current module interfaces, but there is not enough demand. Personally, I've considered writing such an interface to Python or Perl, but now all I needed now works without it.

For example, there is a Python interface module from FreeRADIUS, which essentially has the same model as in rsyslog: messages, queues, modules. https://github.com/FreeRADIUS/freeradius-server/tree/master/src/modules/rlm_python It is fairly simple... But you need to write a module for each language you want to support.


--
Pavel Levshin

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to