mongodb not found in /etc/syslog-ng/syslog-ng.conf at line 30, column 23:
Hi, Can you tell what I'm doing wrong here? I entered destination mongodb { mongodb(); }; log { source(src); destination(mongodb); }; in syslogng.conf as in the directions and this is what happens: user@syslog:~/syslogng-web$ sudo service syslog-ng restart * Stopping system logging syslog-ng [ OK ] * Starting system logging syslog-ng Error parsing destination, destination plugin mongodb not found in /etc/syslog-ng/syslog-ng.conf at line 30, column 23: destination mongodb { mongodb() ; }; ^^^^^^^
Hello, You can check the available modules with the following command: syslog-ng -V Probably you will not find mongodb in the list of modules. If you compile from source syslog-ng try to detect the mongodb client header files. If it doesn't find a proper one, syslog-ng will be compiling without the mongodb destination driver. So you have to install the proper header file and compile syslog-ng again. If you use ubuntu/debian distro the following command may help: sudo apt-get install libmongo-client-dev I hope it helps, Br, Laci On 6 June 2015 at 00:17, Rick Silacci <rick@velociter.net> wrote:
Hi, Can you tell what I'm doing wrong here? I entered destination mongodb { mongodb(); }; log { source(src); destination(mongodb); }; in syslogng.conf as in the directions and this is what happens:
user@syslog:~/syslogng-web$ sudo service syslog-ng restart * Stopping system logging syslog-ng [ OK ] * Starting system logging syslog-ng Error parsing destination, destination plugin mongodb not found in /etc/syslog-ng/syslog-ng.conf at line 30, column 23:
destination mongodb { mongodb() ; }; ^^^^^^^
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Mongodb wasn’t listed…I’ll go from there. Thanks for your help! From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Laci Mészáros Sent: Saturday, June 06, 2015 11:55 PM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] mongodb not found in /etc/syslog-ng/syslog-ng.conf at line 30, column 23: Hello, You can check the available modules with the following command: syslog-ng -V Probably you will not find mongodb in the list of modules. If you compile from source syslog-ng try to detect the mongodb client header files. If it doesn't find a proper one, syslog-ng will be compiling without the mongodb destination driver. So you have to install the proper header file and compile syslog-ng again. If you use ubuntu/debian distro the following command may help: sudo apt-get install libmongo-client-dev I hope it helps, Br, Laci On 6 June 2015 at 00:17, Rick Silacci <rick@velociter.net<mailto:rick@velociter.net>> wrote: Hi, Can you tell what I'm doing wrong here? I entered destination mongodb { mongodb(); }; log { source(src); destination(mongodb); }; in syslogng.conf as in the directions and this is what happens: user@syslog:~/syslogng-web$ sudo service syslog-ng restart * Stopping system logging syslog-ng [ OK ] * Starting system logging syslog-ng Error parsing destination, destination plugin mongodb not found in /etc/syslog-ng/syslog-ng.conf at line 30, column 23: destination mongodb { mongodb() ; }; ^^^^^^^ ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
participants (2)
-
Laci Mészáros
-
Rick Silacci