Re: [syslog-ng]program() destination
Maciek, have you had any success sending email using this method? I'm trying to get syslog-ng to send an email when a certain alert comes in. John Delisle Corporate Technology Ceridian Canada Ltd 204-975-5909 Maciek Pasternacki <maciekp@japhy.fnord.o To: syslog-ng@lists.balabit.hu rg> cc: Sent by: Subject: [syslog-ng]program() destination syslog-ng-admin@lists. balabit.hu 2001/02/28 12:43 PM Please respond to syslog-ng Hello, I have following configuration on my machine: source logdev { unix-stream("/dev/log"); }; destination foo { program("/home/foo/.bin/loglogs.pl"); }; filter f_foo { not priority(debug) and not facility(mail); }; log { source(logdev); filter(f_foo); destination(foo); }; File /home/foo/.bin/loglogs.pl come as follows: #!/usr/bin/perl open FOO, ">/tmp/loglog.log"; while ( <STDIN> ) { print FOO $_; } close FOO; Could anybody tell why file /tmp/loglog.log stays empty no matter what I do? Greets, --Maciek -- __ Maciek Pasternacki <maciekp@japhy.fnord.org> [ http://japhy.fnord.org/ ] `| _ |_\ / *CENSORED* ( full version at http://japhy.fnord.org/sig.txt ) ,|{-}|}| }\/ \/ |____/ (See attached file: atty1o2p.dat)
John_Delisle@ceridian.ca pressed following keys:
Maciek, have you had any success sending email using this method? I'm trying to get syslog-ng to send an email when a certain alert comes in.
Well, I can't get syslog-ng to give me logs to stdin (or I can't properly read them), so sending e-mail also doesn't work...
John Delisle Corporate Technology Ceridian Canada Ltd 204-975-5909 --Maciek
-- __ Maciek Pasternacki <maciekp@japhy.fnord.org> [ http://japhy.fnord.org/ ] `| _ |_\ / *CENSORED* ( full version at http://japhy.fnord.org/sig.txt ) ,|{-}|}| }\/ \/ |____/
participants (2)
-
John_Delisle@ceridian.ca
-
Maciek Pasternacki