[syslog-ng]NEWBIE question: Email as destination
Snortball
snortball@hotmail.com
Mon, 5 Nov 2001 14:00:30 -0500
Yikes! I can't believe I completely missed this in the documentation. Thanks
for pointing it out....and sorry for the wasted bandwidth....
Sb
----- Original Message -----
From: "Gregor Binder" <gb@rootnexus.net>
To: <syslog-ng@lists.balabit.hu>
Sent: Monday, November 05, 2001 11:03 AM
Subject: Re: [syslog-ng]NEWBIE question: Email as destination
> 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
>
> _______________________________________________
> syslog-ng maillist - syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
>