[syslog-ng] [PATCH] [0/1] libmongo-client: add support for Unix sockets

Conrad Hoffmann ch at bitfehler.net
Sun Aug 12 03:57:26 CEST 2012


Greetings!

This is patch agains the master branch of syslog-ng-3.4.

It's more of a proof-of-concept thing, but in a quick session I put support
for Unix sockets into libmongo-client. It may not be stunningly beautiful,
but I actually used it (along with a second patch, which I will send shortly)
to have syslog-ng write to mongodb via a Unix socket.

I realize libmongo-client is also on GitHub, but the submodule pointed to a
different repo, so I decided to just dump this here. :)

If you have any interest at all, I could also clean this up some more. Maybe
split across two commits, too. Let me know.

Conrad Hoffmann (1):
  Add support for Unix sockets.

 examples/mongo-dump.c | 22 +++++++++++++++++-----
 src/mongo-client.c    | 40 ++++++++++++++++++++++++++++++++++++++++
 src/mongo-client.h    | 12 ++++++++++++
 src/mongo-sync.c      | 23 +++++++++++++++++++++++
 src/mongo-sync.h      | 15 +++++++++++++++
 5 files changed, 107 insertions(+), 5 deletions(-)

-- 
1.7.11.4



More information about the syslog-ng mailing list