[syslog-ng] [PATCH] afmongodb: Print the collection name upon init.

Gergely Nagy algernon at balabit.hu
Sun Sep 11 00:09:23 CEST 2011


When initializing a mongodb destination, include the collection name
in the logged message too.

Signed-off-by: Gergely Nagy <algernon at balabit.hu>
---
 modules/afmongodb/afmongodb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/afmongodb/afmongodb.c b/modules/afmongodb/afmongodb.c
index 0f01f05..4bf17a9 100644
--- a/modules/afmongodb/afmongodb.c
+++ b/modules/afmongodb/afmongodb.c
@@ -435,6 +435,7 @@ afmongodb_dd_init(LogPipe *s)
 	      evt_tag_str("host", self->host),
 	      evt_tag_int("port", self->port),
 	      evt_tag_str("database", self->db),
+	      evt_tag_str("collection", self->coll),
 	      NULL);
 
   self->queue = log_dest_driver_acquire_queue(&self->super, afmongodb_dd_format_persist_name(self));
-- 
1.7.5.4




More information about the syslog-ng mailing list