Mailinglist Archive: opensuse (3566 mails)
| < Previous | Next > |
Re: [opensuse] Re: Need help creating a syslog -ng config file to perform a Syslog Daemon's Work.
- From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 16:48:54 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0704241641390.20538@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Tuesday 2007-04-24 at 15:31 +0200, Joachim Schrod wrote:
> I don't think there's a source modification needed for syslog-ng.
> One can specify $LEVEL in a template() clause in a destination section. E.g.
>
> destination d_file {
> file("/var/log/messages");
> template("$HOUR:$MIN:$SEC $TZ $HOST [$LEVEL] $MSG\n");
> template_escape(no);
> }
>
> (This is taken straight from the syslog-ng documentation in
> /usr/share/doc/packages/syslog-ng/syslog-ng.pdf.
Gosh! I neglected looking in there. I thought the man page was complete! :-/
> I would add some more
> information like $DATE and $FACILITY. ;-)
>
> $LEVEL expands to the name of the level and not to a number, though.
At least, it is something. I have seen, elsewhere, vievers that could sort
on the priority, display in different colours, or simply hide lower
priority messages as the user chooses.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFGLhjZtTMYHG2NR9URAmizAJ9GAlTEBy2UAHVe7F71QlPQrCN0LACeI043
rgARFTxGKqFrYGtLoC2xIGU=
=S3ZU
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Hash: SHA1
The Tuesday 2007-04-24 at 15:31 +0200, Joachim Schrod wrote:
> I don't think there's a source modification needed for syslog-ng.
> One can specify $LEVEL in a template() clause in a destination section. E.g.
>
> destination d_file {
> file("/var/log/messages");
> template("$HOUR:$MIN:$SEC $TZ $HOST [$LEVEL] $MSG\n");
> template_escape(no);
> }
>
> (This is taken straight from the syslog-ng documentation in
> /usr/share/doc/packages/syslog-ng/syslog-ng.pdf.
Gosh! I neglected looking in there. I thought the man page was complete! :-/
> I would add some more
> information like $DATE and $FACILITY. ;-)
>
> $LEVEL expands to the name of the level and not to a number, though.
At least, it is something. I have seen, elsewhere, vievers that could sort
on the priority, display in different colours, or simply hide lower
priority messages as the user chooses.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFGLhjZtTMYHG2NR9URAmizAJ9GAlTEBy2UAHVe7F71QlPQrCN0LACeI043
rgARFTxGKqFrYGtLoC2xIGU=
=S3ZU
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |