[syslog-ng] Mongodb

Nilo Cabeza Diaz nilocd at fcsh.upr.edu.cu
Tue Nov 26 19:08:01 CET 2013


how send log to mongodb???

this is what I do in syslog-ng.conf and does nothing for me



destination d_dw_v3_mongo {
     mongodb(
         host("localhost")
         port(27017)
         database("syslog")
         collection("messages")
         value-pairs(
             key("ISODATE")
             key("PRIORITY")
             pair("svc_id" "${.SDATA.syslog at 0.svcid}")
             pair("tid" "${.SDATA.syslog at 0.tid}")
             pair("act_id" "${.SDATA.syslog at 0.id}")
             pair("act_eid" "${.SDATA.syslog at 0.eid}")
             key("MESSAGE")
             key("SDATA")
             key("HOST")

);

};




More information about the syslog-ng mailing list