[syslog-ng]Sending mail to root?

Florian Lindner syslog-ng@lists.balabit.hu
Tue, 19 Aug 2003 16:08:12 +0200


Am Dienstag, 19. August 2003 15:22 schrieb Amodiovalerio Verde:
> That's the priority code ie the combination as defined by RFC3164 of
> severity and facility...
>
> Every facility and severity have a numeric value starting from 0.
>
> The priority code is calculated as : Facility * 8 + Severity...
>
> So 17 is Facility = 2 (mail) and Severity = 1 (alert)
>
> You can look here for all codes : http://www.faqs.org/rfcs/rfc3164.html

Ok, thanks.

Can I use the filename expansion macros described in 
http://www.balabit.com/products/syslog_ng/reference/x354.html in the program 
function? So I can give the mail a subject which contains facility und 
severity.
Thx,
Florian


> ----- Original Message -----
> From: "Florian Lindner" <mailinglists@xgm.de>
> To: <syslog-ng@lists.balabit.hu>
> Sent: Tuesday, August 19, 2003 2:33 PM
> Subject: Re: [syslog-ng]Sending mail to root?
>
> > Thanks, it works so far.
> > I get Email like that:
> >
> > <17>Aug 19 14:31:43 s_sys@bastet root: foo!
> >
> > What dies the <17> means?
> >
> > (The message was generated by logger with mail.alert)
> >
> > Thanks,
> > Florian
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html