[syslog-ng]NEWBIE question: Email as destination
Gregor Binder
gb@rootnexus.net
Mon, 5 Nov 2001 17:03:21 +0100
Snortball on Mon, Nov 05, 2001 at 10:37:47AM -0500:
Hi,
> I am trying to have syslog-ng send certain syslog messages via email so that
> I don't have to bother with a log watcher like swatch, etc. I tried
> different combinations of:
> destination email { pipe("/bin/mail"); };
>
> But that just overwrote the mail bianry (not fun).
I believe the documentation does cover this, pipe() expects a named pipe
(FIFO), the function you're looking for is program(). This will still
not mail every line by itself (which should be in the docs as well), you
will have to make a little script that reads STDIN and mails every
single line to you (if you want to make yourself subject to an email DoS
condition :)).
Regards,
--
____ ____
/ _/| - > Gregor Binder <gb@(rootnexus.net|sysfive.com)>
| / || _\ \
\__ Id: 0xE2F31C4B Fp: 8B8A 5CE3 B79B FBF1 5518 8871 0EFB AFA3 E2F3 1C4B