Hello fellows. I will try to be brief with my question. I am integrating a team that is developing a system where syslog will receive messages and according to some match expressions will have to send those messages to another process. So, to do this, I have tried unix-dgram. I use Linux Ubuntu and what happens is that when I reload or stop/start syslog I get CORE DUMPED. I have made some research in the documents trying to find out the reason. What I understood was that unix.dgram only works in BSD. Is this the truth? My solution so far is to use a named pipe instead of an unix datagram socket. Tell me your opinion please. Regards, Bruno.
On Thu, 2007-03-01 at 15:07 +0000, Bruno Vieira wrote:
Hello fellows.
I will try to be brief with my question. I am integrating a team that is developing a system where syslog will receive messages and according to some match expressions will have to send those messages to another process.
So, to do this, I have tried unix-dgram. I use Linux Ubuntu and what happens is that when I reload or stop/start syslog I get CORE DUMPED. I have made some research in the documents trying to find out the reason. What I understood was that unix.dgram only works in BSD.
Is this the truth?
My solution so far is to use a named pipe instead of an unix datagram socket.
Tell me your opinion please.
which syslog-ng version are you using? both unix-dgram/unix-stream destinations should work on Linux. -- Bazsi
I'm using syslog-ng 1.6.11 Neither of the following lines works: destination s_dgram { unix-dgram("/tmp/log.socket"); }; destination d_unix_stream { unix-stream("/var/run/logs"); }; For both, used separately, the error is: CONSOLE: sudo /etc/init.d/syslog-ng stop sudo /etc/init.d/syslog-ng start Starting system logging: syslog-ngSegmentation fault (core dumped) start failed. Many thanks. Bruno. On 3/2/07, Balazs Scheidler <bazsi@balabit.hu> wrote:
On Thu, 2007-03-01 at 15:07 +0000, Bruno Vieira wrote:
Hello fellows.
I will try to be brief with my question. I am integrating a team that is developing a system where syslog will receive messages and according to some match expressions will have to send those messages to another process.
So, to do this, I have tried unix-dgram. I use Linux Ubuntu and what happens is that when I reload or stop/start syslog I get CORE DUMPED. I have made some research in the documents trying to find out the reason. What I understood was that unix.dgram only works in BSD.
Is this the truth?
My solution so far is to use a named pipe instead of an unix datagram socket.
Tell me your opinion please.
which syslog-ng version are you using? both unix-dgram/unix-stream destinations should work on Linux.
-- Bazsi
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
On Fri, 2007-03-02 at 15:01 +0000, Bruno Vieira wrote:
I'm using syslog-ng 1.6.11
Neither of the following lines works:
destination s_dgram { unix-dgram("/tmp/log.socket"); }; destination d_unix_stream { unix-stream("/var/run/logs"); };
For both, used separately, the error is: CONSOLE: sudo /etc/init.d/syslog-ng stop sudo /etc/init.d/syslog-ng start Starting system logging: syslog-ngSegmentation fault (core dumped) start failed.
It does not segfault on me. Can you send me the backtrace extracted from the core file? It could give me a hint even if debug symbols are not present, but the ideal would be to compile syslog-ng with debugging symbols, then run gdb on the resulting core file and issuing a "bt" command to see where it segfaults. btw: you might want to try 2.0.x, the new stable branch, supporting two releases in parallel distracts me from development efforts. -- Bazsi
participants (2)
-
Balazs Scheidler
-
Bruno Vieira