On Fri, 24 Aug 2012, Rainer Gerhards wrote:

-----Original Message-----
On Thu, 23 Aug 2012, Miloslav Trmac wrote:

----- Original Message -----
On Wed, 22 Aug 2012, Miloslav Trmac wrote:

----- Original Message -----
Why have your own template engine instead of using the normal
rsyslog
template engine?

I think this is a core misunderstanding in this thread: Miloslav (Mirek) is actually 
working on EXTENDING THE CURRENT PROPERTY ENGINE. He is NOT doing a new module. David, 
not sure if you looked at his code. If not, you should do. The "interesting 
head" is here:

http://fedorapeople.org/cgit/mitr/public_git/rsyslog.git/?h=ommongodb

and this commit is kind of the outline of the current work:

http://fedorapeople.org/cgit/mitr/public_git/rsyslog.git/commit/?h=ommongodb&id=da801d28ef7427897fadc1d9de88c8999413e836

You can grasp the idea very quickly.

My apologies then, I was misunderstanding this to be something that was being implemented inside ommongodb

4. ommongodb receives the template-formed string, and acts on it:
  4a: a JSON parser converts the string into a JSON parser data
structure
  4b: ... which is converted into a BSON data structure
  4c: ... which is converted into a BSON byte stream, and finally
sent to the MongoDB server.

This seems like a fairly inefficent way of doing things, why not
convert
the JSON string directly to a BSON byte stream?

That's a good question. But think about it: that would mean that the rsyslog *core* would need to understand BSON. That in turn means that the core would have a dependency on the BSON (mongodb) library. And *that* is a really bad thing. Remember that a root cause to creating the plugin system was to prevent such dependencies. One could, of course, create some template plugin, but this plugin would be mongo-specific. This doesn't sound like the right thing to me.

I as thinking that the rsyslog core would send JSON to ommongodb taht would reformat the JSON to BSON, not that the core wouldn do BSON.

That being said, there are arguments in favor of being able to use BSON as a transport between machines, so I wouldn't be surprised to see BSON creep in later.

David Lang
_______________________________________________
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

Reply via email to