[syslog-ng]program() destination

John_Delisle@ceridian.ca John_Delisle@ceridian.ca
Wed, 28 Feb 2001 13:59:52 -0600


--0__=06256A01006DDA318f9e8a93df938690918c06256A01006DDA31
Content-type: text/plain; charset=us-ascii



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)


--0__=06256A01006DDA318f9e8a93df938690918c06256A01006DDA31
Content-type: application/octet-stream; 
	name="atty1o2p.dat"
Content-Disposition: attachment; filename="atty1o2p.dat"
Content-transfer-encoding: base64

LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NClZlcnNpb246IEdudVBHIHYxLjAuNCAoR05V
L0xpbnV4KQ0KQ29tbWVudDogRm9yIGluZm8gc2VlIGh0dHA6Ly93d3cuZ251cGcub3JnDQoNCmlE
OERCUUU2blViUUxnT3Z0cGtzbUJVUkFsaXhBSjQzMlNIWFVPZHc0TFFSdklFUlVJWkFWRzRLWEFD
Y0Q5dk8NCjlwL0dpL2tiTzlld1A2T211LzhMY1U0PQ0KPWgzaWENCi0tLS0tRU5EIFBHUCBTSUdO
QVRVUkUtLS0tLQ0K

--0__=06256A01006DDA318f9e8a93df938690918c06256A01006DDA31--