i don't remeber if the program template is in 1.6 but i think there is a patch somewhere... that's why i suggested writing a mini-parser...that way you could format things better... btw ... search for the program template patch in the mailing list or try to see if it's already with syslog-ng 1.6... Amodiovalerio Verde ----- Original Message ----- From: "Florian Lindner" <mailinglists@xgm.de> To: <syslog-ng@lists.balabit.hu> Sent: Tuesday, August 19, 2003 4:08 PM Subject: Re: [syslog-ng]Sending mail to root?
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
_______________________________________________ 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