[syslog-ng] Problem with mongodb

Peter Czanik czanik at balabit.hu
Thu Jul 31 09:36:42 CEST 2014


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 at 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 at 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 at 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 at balabit.com>
BalaBit IT Security / syslog-ng upstream
http://czanik.blogs.balabit.com/
https://twitter.com/PCzanik



More information about the syslog-ng mailing list