Viacheslav Biriukov <v.v.biriukov@gmail.com> writes:
Hello. Can you help me with syslog-ng 3.3 on the CentoOS 5.5 with MongoDB 1.6 I install syslog-ng version 3.3 where mongodb support exists. But when I add to the config mongodb destination I get an error:
Starting syslog-ng: Error parsing destination, destination plugin mongodb
not found in /etc/syslog-ng/syslog-ng.conf at line 70, column 5: mongodb( ^^^^^^^
Looks like the mongodb driver either has not been compiled, or it is not loaded. Are you using a git checkout of syslog-ng 3.3, or an older version?
#MongoDB destination d_mongodb { mongodb( host("127.0.0.1") port(27017) database("syslog-ng") collection("logs") keys("date", "facility", "level", "host", "program", "pid", "message") values("${R_YEAR}-${R_MONTH}-${R_DAY} ${R_HOUR}:${R_MIN}:${R_SEC}", "$FACILITY", "$LEVEL", "$HOST","$PROGRAM", "$PID", "$MSGONLY") ); };
Hmm... this sounds like a very old mongodb() config. And you're missing @module afmongodb. I'd suggest you try it with the latest syslog-ng 3.3 from git, using the new mongodb() syntax, as explained on http://asylum.madhouse-project.org/projects/syslog-ng/mongodb/ If that does not work, the the output of ./configure and the generated config.log file could provide hints why it doesn't work. -- |8]