Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems when running zmq destination with syslog-ng 3.7.2 #150

Open
litterbear opened this issue Mar 22, 2016 · 8 comments
Open

Some problems when running zmq destination with syslog-ng 3.7.2 #150

litterbear opened this issue Mar 22, 2016 · 8 comments

Comments

@litterbear
Copy link
Contributor

I found there are problems when running zmq destination with syslog-ng 3.7.2

It compiles successfully, but it fails when running with the configuration below.

@version: 3.7
@include "scl.conf"
source      s_system { system(); internal(); };

destination zmq_des {
    zmq(
      port(5557)
    );
};

log { source(s_system); destination(zmq_des); };

I tried by

  1. compiling from the source in my ubuntu 14.04 server
  2. compiling in the syslog-ng-incubator-dev docker image.
    Both tries failes with following message
[2016-03-22T11:26:37.194081] Module loaded and initialized successfully; module='sdjournal'
[2016-03-22T11:26:37.194124] Finishing include; content='source confgen system', depth='1'
[2016-03-22T11:26:37.194447] Module loaded and initialized successfully; module='zmq'
/usr/sbin/syslog-ng: symbol lookup error: /usr/lib/syslog-ng/3.7/libzmq.so: undefined symbol: init_sequence_number

I look into the code and found the reason is that the init_sequence_number function is not included. Include "lib/misc.h" solve the problem when it is syslog-ng 3.7.2.

However init_sequence_number is in lib/misc.h in syslog-ng 3.7.2, and init_sequence_number is in lib/seqnum.h in syslog-ng 3.8

How should I include the file?

PS:
If I use the syslog-ng 3.8 in the master version to compile syslog-ng-incubator, problems like #149 will be encountered.

@litterbear litterbear changed the title Some problems when running syslog-ng-incubator with syslog-ng 3.7.2 Some problems when running zmq destination with syslog-ng 3.7.2 Mar 22, 2016
@juhaszviktor
Copy link
Contributor

Hi,

Incubator is able to use 3.7.x (e.g.: 3.7.2). The main problem is, that the misc.h is not included in zmq-destination.c

If I do the include it seems working

@litterbear
Copy link
Contributor Author

However, init_sequence_number is moved to other files in 3.8.
So I'm wondering which file should be include.

@juhaszviktor
Copy link
Contributor

Unfortunatelly, we do not support the syslog-ng 3.8 in incubator, yet

@litterbear
Copy link
Contributor Author

I see now. :)
Opened a PR #151 for this just now.

@juhaszviktor
Copy link
Contributor

Thanks, merged

@liberatorqjw
Copy link

Hey
Can I make ask some thing for your help?
I make a conf like this
`@version: 3.7
@include "scl.conf"
source s_system { system(); internal(); };

destination zmq_des {
zmq(
port(5557)
);
};

log { source(s_system); destination(zmq_des); };but I get the error like the following:* Reload system logging syslog-ng Error parsing destination, destination plugin zmq not found in /usr/local/syslog-ng/etc/syslog-ng.conf at line 38, column 6:

    zmq(
    ^^^

syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng
but I run the syslog-ng --module-registry I can get the information like this:Module: zmq
Status: ok
Version: 0.5.0
Core-Revision: Dummy Revision
Description:
The zmq module provides ZeroMQ destination support for syslog-ng.
Plugins:
source zmq
destination zmq

`
So, how can I solve it?
thank you

@litterbear
Copy link
Contributor Author

@liberatorqjw It looks weird.
Did you try to restart syslog-ng instead of reloading it ?

@liberatorqjw
Copy link

@litterbear I did , but it is also the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants