[syslog-ng] Re: syslog-ng

Balazs Scheidler bazsi@balabit.hu
Sat, 25 Mar 2000 14:53:37 +0100


> 
>  Great program from what I have read so far. Just installed it. I was
> curious if there were any plans to add an option to syslog-ng.conf
> under DESTINATIONS:
> 
>     * mail <email address> - Emails specified logs to user.

you can easily achieve this using the program() destination. Write a simple
shell script:

#!/bin/sh
while read line; do
	echo $line | mail root@domain.com
done

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt