[syslog-ng] [PATCH (3.4)] afmongodb: Support connecting to unix sockets

Balazs Scheidler bazsi77 at gmail.com
Sat Aug 18 14:09:25 CEST 2012


Merged, thanks Gergely & Conrad.

On Fri, 2012-08-17 at 10:27 +0200, Gergely Nagy wrote:
> The next version of libmongo-client (0.1.6) will support connecting
> via unix sockets, and the mongodb destination driver should follow. To
> achieve this, the internal copy was updated to a version that already
> supports this, and the minimum required version was also bumped to
> 0.1.6.
> 
> With that in place, the path() option is introduced, which, when set,
> will tell the driver to connect via the specified path to a unix
> socket. It does this by setting port to MONGO_CONN_LOCAL, that's how a
> path is recognised by libmongo-client.
> 
> However, setting path() conflicts with host(), port() and servers():
> the first cannot be used when any of the other three was previously
> set, nor the other way around. The configuration grammar was updated
> to notice this case, and bail out with an error if such a scenario is
> detected.
> 
> Based on the work of Conrad Hoffmann <ch at bitfehler.net>.
> 
> Signed-off-by: Gergely Nagy <algernon at balabit.hu>




More information about the syslog-ng mailing list