[syslog-ng] Syslog-ng & pipe question
Sandor Geller
wildy at balabit.hu
Thu Jan 26 14:55:16 CET 2006
syslogyk wrote:
> Hi!
>
> Could you please help me with this question?
>
> I have the following strings in my syslog-ng.conf:
>
> source src {
> internal();
> unix-dgram("/dev/log");
> unix-dgram("/var/lib/named/dev/log");
> };
> ... skipped ...
> filter f_debug { level(debug); };
> destination d_yuri { pipe("/dev/yuri_pipe"); };
> log {
> source(src);
> filter(f_debug);
> destination(d_yuri);
> };
>
> With this configuration, I execute the following commands in the first console:
>
> mkfifo /dev/yuri_pipe
> cat /dev/yuri_pipe
>
> On the other console I generate an event (for instance, "logger blablabla"). And cat /dev/yuri_pipe on the first console outputs nothing.
>
> What's wrong in my syslog-ng.conf? Can I get events in my pipe?
>
> Thank you in advance,
> Yuri
> P.S. Sorry, if you receive this message twice.
You have to create the pipe BEFORE starting syslog-ng, and set the
priority of the log message: logger -p debug blabla
--
Sandor Geller
wildy at balabit.hu
More information about the syslog-ng
mailing list