-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you want to use stable 1.4.x tree, there's no solution as template() is not implemeted there AFAIK. Should you really want it, use 1.5.x version. At least following config works: filter f_foo { facility(mail); }; destination d_foo { file("/var/log/mail/foo.log" template("$DATE $FACILITY $LEVEL $FULLHOST $MESSAGE\n") ); }; log { source(s_udp); filter(f_foo); destination(d_foo); }; Above configuration keeps the usual format, baut adds facility and severity codes in each line. Possible expansion macros are the same as in file name expansion. Hope this helps, -MNi - -- Mikko Niskanen
-----Original Message----- From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng-admin@lists.balabit.hu]On Behalf Of Kai Wang Sent: Wednesday, June 13, 2001 2:20 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]have the priority field in the log
Hi,
Our network group found that they can view log messages with the priority field on the routers. But after the logs arrive the unix syslog server, the priority field is gone. They prefer to have such a field in their log. Is there a way to have the priority field in the log message by syslog-ng?
Kai
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng
-----BEGIN PGP SIGNATURE----- Version: PGP 7.0 iQA/AwUBOybtXUXQWDVhHgF9EQLOKQCgvwQNqJaWPkEcpkhjMl5/X51BKbkAoM4p fJECeh0PeAyv0XzyvjRg82ty =6bCF -----END PGP SIGNATURE-----