[syslog-ng] Syslog-ng & pipe question

syslogyk syslogyk at yandex.ru
Thu Jan 26 18:00:27 CET 2006


  Thank you, Sandor and Balazs!

Yes, I tried to specify debug priority and got what I wanted.
Thank you for helping me!

  Yuri.

>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


-- 
Сегодня удачный день, чтобы завести почту на Яндексе http://mail.yandex.ru


More information about the syslog-ng mailing list