Hi, I have a fresh CentOS 7 minimal installation and enabled the EPEL 7 repo. Then installed syslog-ng and syslog-dbi in the following versions: Installed Packages Name : syslog-ng Arch : x86_64 Version : 3.5.5 Release : 1.el7 Size : 1.6 M Repo : installed
From repo : epel Summary : Next-generation syslog server URL : http://www.balabit.com/network-security/syslog-ng
Installed Packages Name : syslog-ng-libdbi Arch : x86_64 Version : 3.5.5 Release : 1.el7 Size : 61 k Repo : installed
From repo : epel Summary : libdbi support for syslog-ng URL : http://www.balabit.com/network-security/syslog-ng
All documentations say that this version should support mongodb, but after some debugging I found this output while failing to start syslog-ng: Adding include file; filename='/etc/syslog-ng/conf.d/mongodb.conf' Starting to read include file; filename='/etc/syslog-ng/conf.d/mongodb.conf', depth='1' Error parsing destination, destination plugin mongodb not found in /etc/syslog-ng/conf.d/mongodb.conf at line 2, column 5: included from /etc/syslog-ng/syslog-ng.conf line 68, column 1 mongodb( ^^^^^^^ Where my /etc/syslog-ng/conf.d/mongodb.conf looks like this: destination d_mongodb { mongodb(); }; log { source(s_sys); destination(d_mongodb); }; Am I missing something or is that rpm compiled without mongodb support? Glad about any ideas! Cheers, Dennis --
Hi, On 07/30/2014 06:45 PM, DeeKaeOne wrote:
I have a fresh CentOS 7 minimal installation and enabled the EPEL 7 repo. Then installed syslog-ng and syslog-dbi in the following versions: syslog-ng-dbi is only for SQL destinations (mysql and pgsql)
Am I missing something or is that rpm compiled without mongodb support? I released the syslog-ng EPEL7 package just last week, and without MongoDB support: https://czanik.blogs.balabit.com/2014/07/epel-7-now-contains-syslog-ng/ I'm working on adding mongodb support to EPEL7 syslog-ng, but most likely it will take a few weeks.
If you need MongodDB support now, you should rebuild the source package ( http://dl.fedoraproject.org/pub/epel/beta/7/SRPMS/syslog-ng-3.5.5-1.el7.src.... ) with the bundled libmongo-client. This is prohibited by the Fedora / EPEL packaging guidelines, so for the official EPEL7 package we have to wait, until libmong-client arrives to EPEL7. You can use mock to build a source and binary rpms. Bye, -- Peter Czanik (CzP) <peter.czanik@balabit.com> BalaBit IT Security / syslog-ng upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik
Hi Peter, thanks for the clarification. I did miss your blog posts detail about the missing mongodb support - sorry. I rebuild the rpm like you suggested but still I have no luck. The error stays the same. Do I need to do something special to include that bundled libmongo-client you describe? Because I just did the rpmbuild --rebuild syslog-ng-3.5.5-1.el7.src.rpm and reinstalled the rpm. Cheers, Dennis ----- Ursprüngliche Mail -----
Von: "Peter Czanik" <czanik@balabit.hu> An: syslog-ng@lists.balabit.hu Gesendet: Mittwoch, 30. Juli 2014 19:32:32 Betreff: Re: [syslog-ng] Problem with mongodb
Hi,
On 07/30/2014 06:45 PM, DeeKaeOne wrote:
I have a fresh CentOS 7 minimal installation and enabled the EPEL 7 repo. Then installed syslog-ng and syslog-dbi in the following versions: syslog-ng-dbi is only for SQL destinations (mysql and pgsql)
Am I missing something or is that rpm compiled without mongodb support? I released the syslog-ng EPEL7 package just last week, and without MongoDB support: https://czanik.blogs.balabit.com/2014/07/epel-7-now-contains-syslog-ng/ I'm working on adding mongodb support to EPEL7 syslog-ng, but most likely it will take a few weeks.
If you need MongodDB support now, you should rebuild the source package ( http://dl.fedoraproject.org/pub/epel/beta/7/SRPMS/syslog-ng-3.5.5-1.el7.src.... ) with the bundled libmongo-client. This is prohibited by the Fedora / EPEL packaging guidelines, so for the official EPEL7 package we have to wait, until libmong-client arrives to EPEL7. You can use mock to build a source and binary rpms.
Bye,
-- Peter Czanik (CzP) <peter.czanik@balabit.com> BalaBit IT Security / syslog-ng upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik
______________________________________________________________________________ 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
On 07/30/2014 11:02 PM, DeeKaeOne wrote:
Hi Peter,
thanks for the clarification. I did miss your blog posts detail about the missing mongodb support - sorry.
I rebuild the rpm like you suggested but still I have no luck. The error stays the same.
Do I need to do something special to include that bundled libmongo-client you describe? Because I just did the rpmbuild --rebuild syslog-ng-3.5.5-1.el7.src.rpm and reinstalled the rpm.
You will need to disable the line, which excludes afmongodb in the spec file: [czanik@localhost ~]$ diff -u syslog-ng/syslog-ng.spec epel7mongo/syslog-ng.spec --- syslog-ng/syslog-ng.spec 2014-07-31 09:11:39.623056449 +0200 +++ epel7mongo/syslog-ng.spec 2014-07-31 09:21:12.074076835 +0200 @@ -3,7 +3,7 @@ Name: syslog-ng Version: 3.5.5 -Release: 1%{?dist} +Release: 2.mongo%{?dist} Summary: Next-generation syslog server Group: System Environment/Daemons @@ -285,7 +285,6 @@ %{_libdir}/lib%{name}-%{version}.so %{_libdir}/%{name}/*.so %exclude %{_libdir}/%{name}/libafsql.so -%exclude %{_libdir}/%{name}/libafmongodb.so %exclude %{_libdir}/%{name}/libredis.so %exclude %{_libdir}/%{name}/libafsmtp.so %exclude %{_libdir}/%{name}/libjson-plugin.so @@ -331,6 +330,10 @@ %changelog +* Thu Jul 31 2014 Peter Czanik <czanik@balabit.hu> - 3.5.5-2.mongo +- enabled mongodb support using internal mongo-client + which is prohibited by Fedora packaging guidelines + * Mon Jul 21 2014 Peter Czanik <czanik@balabit.hu> - 3.5.5-1 - update to 3.5.5 (bugfix release) - enable SQL, smtp, json and geoip support Build a source rpm: mock -v -r epel-7-x86_64 --buildsrpm --spec syslog-ng.spec --sources . And then build from the source rpm: mock -v -r epel-7-x86_64 --rebuild syslog-ng-3.5.5-2.mongo.el7.src.rpm Bye, -- Peter Czanik (CzP) <peter.czanik@balabit.com> BalaBit IT Security / syslog-ng upstream http://czanik.blogs.balabit.com/ https://twitter.com/PCzanik
participants (2)
-
DeeKaeOne
-
Peter Czanik